MockResult<Part2> result = mapper.create("out");
@SuppressWarnings("unchecked")
Result<Part1> f = (Result<Part1>) create(loader, name, mapper.toArguments());
Part1 in = new Part1();
in.setSid(10L);
in.setValue(100);
f.add(in);
assertThat(result.getResults().size(), is(1));
Part2 out = result.getResults().get(0);
assertThat(out.getSid(), is(10L));