@Test
    void verifyOperation() {
        val policy = mock(PersistentIdGenerator.class);
        when(policy.generate(any(Principal.class))).thenCallRealMethod();
        when(policy.generate(any(Principal.class), anyString())).thenReturn("1");
        assertEquals("1", policy.generate(mock(Principal.class)));
    }
This is {@link PersistentIdGeneratorTests}.

@author Misagh Moayyed
@since 6.3.0
api/cas-server-core-api-authentication/src/test/java/org/apereo/cas/authentication/principal/PersistentIdGeneratorTests.java