@Test
    void verifyEncodeBinaryValuesCorrectly() {
        val attributes = new LinkedHashMap<String, Object>();
        attributes.put("user", "casuser".getBytes(StandardCharsets.UTF_8));
        val results = encoder.encodeAttributes(Map.of(), attributes, registeredService, webApplicationService);
        assertTrue(results.containsKey("user"));
        val user = results.get("user");
        assertTrue(user.getClass().isAssignableFrom(String.class));
    }
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