@Test
void floatOrElseThrow() {

    final ToFloatOrThrow<Float> toFloatOrThrow = OrElseThrowUtil.floatOrElseThrow(d -> d);
    assertEquals(1, toFloatOrThrow.applyAsFloat(1f));
    assertThrows(NullPointerException.class, () -> toFloatOrThrow.applyAsFloat(null));
}