@Test
void charOrElseThrow() {

    final ToCharOrThrow<Character> toCharOrThrow = OrElseThrowUtil.charOrElseThrow(d -> d);
    assertEquals(1, toCharOrThrow.applyAsChar((char) 1));
    assertThrows(NullPointerException.class, () -> toCharOrThrow.applyAsChar(null));
}