@Test
void castBooleanToDouble() {

    final ToDouble<String> toDouble = CastUtil.castBooleanToDouble(Objects::nonNull);
    assertNotNull(toDouble);
    assertEquals(1, toDouble.applyAsDouble(""));
    assertEquals(0, toDouble.applyAsDouble(null));
}