@Test
    void verifySerializeADefaultPrincipalAttributesRepositoryToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val repositoryWritten = new DefaultPrincipalAttributesRepository();
        repositoryWritten.setIgnoreResolvedAttributes(true);
        repositoryWritten.setAttributeRepositoryIds(CollectionUtils.wrapSet("1", "2", "3"));
        MAPPER.writeValue(jsonFile, repositoryWritten);
        val repositoryRead = MAPPER.readValue(jsonFile, DefaultPrincipalAttributesRepository.class);
        assertEquals(repositoryWritten, repositoryRead);
    }
Handles tests for {@link DefaultPrincipalAttributesRepository}.

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