@Test public void ifPresent_optionalIntIsPresent() {

  ifPresent(OptionalInt.of(123), consumer::accept)
      .orElse(otherwise::run);
  verify(consumer).accept(123);
  verify(otherwise, never()).run();
}