try {
AtomicInteger methodCounter = new AtomicInteger();
CoGroupOperator coGroupOp = CoGroupOperator.builder(new TestCoGroupFunction(methodCounter), LongValue.class, 1, 2).build();
RichFunction cogrouper = (RichFunction) coGroupOp.getUserCodeWrapper().getUserCodeObject();
// test the method invocations
cogrouper.close();
cogrouper.open(new Configuration());
assertEquals(2, methodCounter.get());
// prepare the coGroup
final List<Record> target = new ArrayList<Record>();
Collector<Record> collector = new Collector<Record>() {