@Test
    void verifyAllFetchDefinitions() throws Throwable {
        attributeDefinitionStore.registerAttributeDefinition(
            DefaultAttributeDefinition.builder()
                .name("commonName")
                .key("cn")
                .scoped(true)
                .encrypted(false)
                .singleValue(true)
                .build()
        );
        val result = MAPPER.readValue(mockMvc.perform(get("/actuator/attributeDefinitions")
                .contentType(MediaType.APPLICATION_FORM_URLENCODED)
                .accept(MediaType.APPLICATION_JSON)
            )
            .andExpect(status().isOk())
            .andReturn()
            .getResponse()
            .getContentAsString(), List.class);
        assertFalse(result.isEmpty());
    }
This is {@link AttributeDefinitionsEndpointTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/AttributeDefinitionsEndpointTests.java