private Map<String, String> baseConnectorConfigs(String filePath) {
        Map<String, String> connectorConfigs = new HashMap<>();
        connectorConfigs.put(CONNECTOR_CLASS_CONFIG, FileStreamSourceConnector.class.getName());
        connectorConfigs.put(TOPIC_CONFIG, TOPIC);
        connectorConfigs.put(FILE_CONFIG, filePath);
        return connectorConfigs;
    }
Create a temporary file and append {@code numLines} to it

@param numLines the number of lines to be appended to the created file
@return the created file
connect/file/src/test/java/org/apache/kafka/connect/file/integration/FileStreamSourceConnectorIntegrationTest.java