@Test public void ifPresent_optionalDoubleIsPresent() {

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