@Test
void longOrElseThrow() {

    final ToLongOrThrow<Long> toLongOrThrow = OrElseThrowUtil.longOrElseThrow(d -> d);
    assertEquals(1, toLongOrThrow.applyAsLong(1L));
    assertThrows(NullPointerException.class, () -> toLongOrThrow.applyAsLong(null));
}