@Test
    void verifyOperation() throws Exception {
        val tenantDefinition = tenantExtractor.getTenantsManager().findTenant("resty").orElseThrow();
        val port = new URI(tenantDefinition.getProperties().get("cas.authn.attribute-repository.rest[0].url").toString()).getPort();
        val body = """
            {
               "name": "casuser",
               "age": 29,
               "messages": ["msg 1", "msg 2", "msg 3"]
            }
            """.stripIndent();
        try (val webServer = new MockWebServer(port, body)) {
            webServer.start();

            val results = restfulTenantPersonAttributeDaoBuilder.build(tenantDefinition);
            assertFalse(results.isEmpty());
            val attributeDao = results.getFirst();
            assertFalse(attributeDao.isDisposable());
            val person = attributeDao.getPerson("casuser");
            assertNotNull(person);
            assertEquals("casuser", person.getAttributeValue("name"));
            assertEquals(29, person.getAttributeValue("age"));
            assertEquals(3, person.getAttributeValues("messages").size());
        }
    }
This is {@link TenantRestfulPersonAttributeDaoBuilderTests}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/TenantRestfulPersonAttributeDaoBuilderTests.java