Object operator = invoke(factory, "create", in);
Source<MockHoge> flowOut = output(MockHoge.class, operator, "out");
out.add(flowOut);
FlowPartDescription desc = (FlowPartDescription) flowOut
.toOutputPort()
.getOwner()
.getDescription();
assertThat(desc.getInputPorts().size(), is(1));
assertThat(desc.getInputPorts().get(0).getName(), is("in"));
assertThat(desc.getInputPorts().get(0).getDataType(), is((Object) MockHoge.class));
assertThat(desc.getOutputPorts().size(), is(1));
assertThat(desc.getOutputPorts().get(0).getName(), is("out"));
assertThat(desc.getOutputPorts().get(0).getDataType(), is((Object) MockHoge.class));
Graph<String> graph = toGraph(in);
assertThat(graph.getConnected("in"), isJust("Simple"));
assertThat(graph.getConnected("Simple"), isJust("out"));
FlowGraph flow = desc.getFlowGraph();
assertThat(flow.getDescription(), is((Object) loader.loadClass("com.example.Simple")));
assertThat(flow.getFlowInputs().size(), is(1));
assertThat(flow.getFlowInputs().get(0).getDescription().getName(), is("in"));
assertThat(flow.getFlowInputs().get(0).getDescription().getDataType(), is((Object) MockHoge.class));
assertThat(flow.getFlowOutputs().size(), is(1));