@Test
    void verifyHandle() {
        val handler = new X509TokenDelegationHandler();

        val elementResponse = mock(Element.class);
        when(elementResponse.getLocalName()).thenReturn(WSS4JConstants.X509_DATA_LN);
        when(elementResponse.getNamespaceURI()).thenReturn(WSS4JConstants.SIG_NS);

        val token = mock(ReceivedToken.class);
        when(token.getToken()).thenReturn(elementResponse);
        assertTrue(handler.canHandleToken(token));
    }
This is {@link X509TokenDelegationHandlerTests}.

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