@Test
    void verifyEncodeNamesUnnecessary() {
        when(webApplicationService.getFormat()).thenReturn(ValidationResponseType.JSON);
        val attributes = new LinkedHashMap<String, Object>();
        attributes.put("user@name", "casuser");
        attributes.put("user:name", "casuser");
        val results = encoder.encodeAttributes(Map.of(), attributes, registeredService, webApplicationService);
        assertTrue(results.containsKey("user@name"));
        assertTrue(results.containsKey("user:name"));
    }
This is {@link DefaultCasProtocolAttributeEncoderTests}.

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