/**
* dual inputs and outputs.
*/
@Test
public void validate_dual() {
FlowDescriptionDriver flow = new FlowDescriptionDriver();
In<Line1> in1 = flow.createIn("in1",
new Input(Line1.class, format, "input", "input-1.txt", DataSize.LARGE));
In<Line2> in2 = flow.createIn("in2",
new Input(Line2.class, format, "input", "input-2.txt", DataSize.TINY));
Out<Line1> out1 = flow.createOut("out1",
new Output(Line1.class, format, "output-1", "output.txt"));
Out<Line2> out2 = flow.createOut("out2",
new Output(Line2.class, format, "output-2", "output.txt"));
FlowDescription desc = new DualIdentityFlow<Line1, Line2>(in1, in2, out1, out2);
JobflowInfo info = compile(flow, desc);
assertThat(info, is(not(nullValue())));