@Test
    void verifyDoIfNull1() {
        assertDoesNotThrow(() -> FunctionUtils.doIfNotNull(Boolean.TRUE, result -> {
            throw new IllegalArgumentException();
        }));
        val supplier = FunctionUtils.doIfNull(null, () -> {
            throw new IllegalArgumentException();
        }, Suppliers.ofInstance(Boolean.FALSE));
        assertFalse(supplier.get());
        assertDoesNotThrow(() -> FunctionUtils.doIfNotNull(null, __ -> {
            throw new IllegalArgumentException();
        }));
    }
This is {@link FunctionUtilsTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/function/FunctionUtilsTests.java