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()));
Location exporterLocation = Location.fromPath(exporterPath, '/');
assertThat(exporterLocation.isPrefix(), is(true));
ModelOutput<Simple> source = tester.openOutput(Simple.class, importerLocation);
Simple model = new Simple();
model.setValueAsString("Hello1, world!");
source.write(model);