@Test
void mapIfPresent() {

    final ToDoubleNullable<String> toDoubleNullable = instance.mapIfPresent(d -> 0);
    assertNotNull(toDoubleNullable);
    assertEquals(0, toDoubleNullable.applyAsDouble("1"));
    assertNull(toDoubleNullable.apply(null));
}