@Test
void booleanOrElseThrow() {

    final ToBooleanOrThrow<Boolean> toBooleanOrThrow = OrElseThrowUtil.booleanOrElseThrow(d -> d);
    assertTrue(toBooleanOrThrow.applyAsBoolean(true));
    assertThrows(NullPointerException.class, () -> toBooleanOrThrow.applyAsBoolean(null));
}