@Test public void ifPresent_optionalIsPresent() {

  ifPresent(Optional.of("foo"), consumer::accept)
      .orElse(otherwise::run);
  verify(consumer).accept("foo");
  verify(otherwise, never()).run();
}