@Test
    void verifyOperation() {
        val credential = CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword();
        val res = new DefaultAuthenticationHandlerExecutionResult(new SimpleTestUsernamePasswordAuthenticationHandler(),
            credential, CollectionUtils.wrapList(new DefaultMessageDescriptor("code1")));
        assertFalse(res.getWarnings().isEmpty());
        res.clearWarnings();
        assertTrue(res.getWarnings().isEmpty());
    }
This is {@link DefaultAuthenticationHandlerExecutionResultTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/DefaultAuthenticationHandlerExecutionResultTests.java