Out<Simple> out = tester.output("out1", new Export(Simple.class, "testing", dummy("dummy")));
JobflowInfo info = tester.compileFlow(new IdentityFlow<Simple>(in, out));
// extract importer destination
GateScript importerScript = loadScript(info, "testing", true);
assertThat(importerScript.getProcesses().size(), is(1));
ProcessScript<?> importer = getProcess(importerScript, "in1");
assertThat(importer.getSourceScript().getResourceName(), is("dummy"));
assertThat(importer.getDrainScript().getResourceName(), is(Constants.HADOOP_FILE_RESOURCE_NAME));
String importerPath = importer.getDrainScript().getConfiguration().get(FileProcess.FILE.key());
assertThat(importerPath, is(notNullValue()));
Location importerLocation = Location.fromPath(importerPath, '/');
// extract exporter source
GateScript exporterScript = loadScript(info, "testing", false);
assertThat(exporterScript.getProcesses().size(), is(1));
ProcessScript<?> exporter = getProcess(exporterScript, "out1");
assertThat(exporter.getSourceScript().getResourceName(), is(Constants.HADOOP_FILE_RESOURCE_NAME));
assertThat(exporter.getDrainScript().getResourceName(), is("dummy"));
String exporterPath = exporter.getSourceScript().getConfiguration().get(FileProcess.FILE.key());
assertThat(exporterPath, is(notNullValue()));