Tuple2OfNullablesImpl extends AbstractTupleOfNullables implements Tuple2OfNullables<T0, T1> { @SuppressWarnings("unchecked") @Override public Optional<T1> get1() { return Optional.ofNullable((T1) values[1]); } Tuple2OfNullablesImpl(T0 e0, T1 e1); @SuppressWarnings("unchecked") @Override Optional<T0> get0(); @SuppressWarnings("unchecked") @Override Optional<T1> get1();  }
@Test void get1Test() { assertEquals(1, (int) instance.get1().orElseThrow(NoSuchElementException::new)); }