@Test
    void verifyEncoder() throws Throwable {
        val encoder = new ProtocolAttributeEncoder() {
        };
        val attributes = new LinkedHashMap<String, Object>();
        attributes.put(ProtocolAttributeEncoder.encodeAttribute("user@name"), "casuser");
        val results = encoder.encodeAttributes(Map.of(), attributes, mock(RegisteredService.class), mock(WebApplicationService.class));
        assertTrue(results.containsKey("user@name"));
    }
This is {@link ProtocolAttributeEncoderTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-services-authentication/src/test/java/org/apereo/cas/authentication/support/ProtocolAttributeEncoderTests.java