@Test
void byteOrElseThrow() {

    final ToByteOrThrow<Byte> toByteOrThrow = OrElseThrowUtil.byteOrElseThrow(d -> d);
    assertEquals(1, toByteOrThrow.applyAsByte((byte) 1));
    assertThrows(NullPointerException.class, () -> toByteOrThrow.applyAsByte(null));
}