@Test
    void checkCreatingSimplePrincipal() throws Throwable {
        val factory = PrincipalFactoryUtils.newPrincipalFactory();
        val principal = factory.createPrincipal(UID);
        assertEquals(UID, principal.getId());
        assertTrue(principal.getAttributes().isEmpty());
    }
This is {@link DefaultPrincipalFactoryTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/DefaultPrincipalFactoryTests.java