@Test
void shortOrElseThrow() {

    final ToShortOrThrow<Short> toShortOrThrow = OrElseThrowUtil.shortOrElseThrow(d -> d);
    assertEquals(1, toShortOrThrow.applyAsShort((short) 1));
    assertThrows(NullPointerException.class, () -> toShortOrThrow.applyAsShort(null));
}