@Test
    void verifyToken() {
        val realm = new RealmPasswordVerificationCallbackHandler("password".toCharArray());
        val callback = new WSPasswordCallback("casuser", "password", "type", WSPasswordCallback.USERNAME_TOKEN);
        assertDoesNotThrow(() -> {
            realm.handle(new Callback[]{callback});
            assertEquals(new String(realm.getPassword()), callback.getPassword());
        });
    }
This is {@link RealmPasswordVerificationCallbackHandlerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-sts-api/src/test/java/org/apereo/cas/support/realm/RealmPasswordVerificationCallbackHandlerTests.java