@Test
    void verifyEncryptedToken() throws Throwable {
        val service = RegisteredServiceTestUtils.getService(UUID.randomUUID().toString());
        val wresult = IOUtils.toString(new ClassPathResource("encryptedToken.txt").getInputStream(), StandardCharsets.UTF_8);
        val token = wsFederationHelper.getRequestSecurityTokenFromResult(wresult);
        val result = wsFederationHelper.buildAndVerifyAssertion(token,
            wsFederationConfigurations.toList(), service);
        assertNotNull(result.getKey());
    }
Test cases for {@link WsFederationHelper}.

@author John Gasper
@since 4.2.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/WsFederationHelperTests.java