@Test
        void verifyProps() {
            val status = AcceptableUsagePolicyStatus.accepted(CoreAuthenticationTestUtils.getPrincipal());
            status.clearProperties();
            status.addProperty("example", "cas");
            status.setProperty("example2", "cas");
            status.addProperty("example2", "system");
            status.setProperty("user", "casuser");
            assertEquals(List.of("cas"), status.getPropertyOrDefault("example", "hello"));
            assertEquals(List.of("casuser"), status.getProperty("user"));
            assertEquals(List.of("cas", "system"), status.getPropertyOrDefault("example2", List.of()));
            assertEquals(Set.of("hello"), status.getPropertyOrDefault("nada", "hello"));

            assertEquals(List.of("hello1", "hello2"), status.getPropertyOrDefault("nada", "hello1", "hello2"));
            assertEquals(List.of("cas", "system"), status.getPropertyOrDefault("example2", "hello1", "hello2"));
        }
This is {@link DefaultAcceptableUsagePolicyRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-aup-webflow/src/test/java/org/apereo/cas/aup/DefaultAcceptableUsagePolicyRepositoryTests.java