@Test
    void verifyOperation() {
        val service = mock(OAuth20TokenSigningAndEncryptionService.class);
        when(service.shouldEncryptToken(any())).thenCallRealMethod();
        when(service.shouldSignToken(any())).thenCallRealMethod();
        assertFalse(service.shouldEncryptToken(getRegisteredService("clientid", "secret")));
        assertFalse(service.shouldSignToken(getRegisteredService("clientid", "secret")));
    }
This is {@link OAuth20TokenSigningAndEncryptionServiceTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/ticket/OAuth20TokenSigningAndEncryptionServiceTests.java