jdbcSink.columns(PartitionedJdbcHdfsJob.DEFAULT_COLUMN_NAMES);
String data0 = "{\"id\":1,\"name\":\"Sven\"}";
String data1 = "{\"id\":2,\"name\":\"Anna\"}";
String data2 = "{\"id\":3,\"name\":\"Nisse\"}";
jdbcSink.getJdbcTemplate().getDataSource();
PartitionedJdbcHdfsJob job = jobs.partitionedJdbcHdfsJob();
// Use a trigger to send data to JDBC
stream("dataSender", sources.http() + XD_DELIMITER
+ jdbcSink);
sources.http(getContainerHostForSource("dataSender")).postData(data0);
sources.http(getContainerHostForSource("dataSender")).postData(data1);
sources.http(getContainerHostForSource("dataSender")).postData(data2);
job(job.toDSL());
waitForXD();
jobLaunch();
waitForXD(2000);
// Evaluate the results of the test.
String dir = JdbcHdfsJob.DEFAULT_DIRECTORY + "/";