@Test
    void verifyOperation() {
        val codec = new SamlAssertionRealmCodec("CAS");
        val wrapper = mock(SamlAssertionWrapper.class);
        val keyInfo = mock(SAMLKeyInfo.class);
        when(keyInfo.getCerts()).thenReturn(new X509Certificate[] {new CasX509Certificate(true)});
        when(wrapper.getSignatureKeyInfo()).thenReturn(keyInfo);
        assertNotNull(codec.getRealmFromToken(wrapper));
    }
This is {@link SamlAssertionRealmCodecTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-ws-sts-api/src/test/java/org/apereo/cas/support/saml/SamlAssertionRealmCodecTests.java