@Test public void ifPresent_optionalLongIsPresent() {

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