@Test
    void verifyDefnWithObject() {
        val value = mock(Object.class);
        when(value.toString()).thenReturn(VALUE);
        val attribute = samlIdPConsentableAttributeBuilder.build(CasConsentableAttribute.builder()
            .name("unknown")
            .values(CollectionUtils.wrapList(value))
            .build());
        assertEquals(VALUE, attribute.getValues().getFirst().toString());
    }
This is {@link SamlIdPConsentableAttributeBuilderTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/web/flow/SamlIdPConsentableAttributeBuilderTests.java