Tuple2MapperImpl extends AbstractTupleMapper<T, Tuple2<T0, T1>> implements TupleMapper<T, Tuple2<T0, T1>> { @Override public Tuple2<T0, T1> apply(T t) { return Tuples.of( get0().apply(t), get1().apply(t) ); } Tuple2MapperImpl(Function<T, T0> m0, Function<T, T1> m1); @Override Tuple2<T0, T1> apply(T t); Function<T, T0> get0(); Function<T, T1> get1();  }
@Test void apply() { assertEquals(Tuples.of(0, 1), instance.apply(0)); }