FlowElement op = block.getElements().iterator().next();
FlowBlock.Input input = block.getBlockInputs().get(0);
FlowBlock.Output output = block.getBlockOutputs().get(0);
assertThat(op, not(sameInstance(gen.get("op"))));
assertThat(input.getElementPort(), not(sameInstance(gen.input("op"))));
assertThat(output.getElementPort(), not(sameInstance(gen.output("op"))));
assertThat(input.getElementPort().getOwner(), is(op));
assertThat(output.getElementPort().getOwner(), is(op));