private void registerTicket(final String name) throws Throwable {
        val oauthCode = mock(OAuth20RefreshToken.class);
        when(oauthCode.getId()).thenReturn(name);
        when(oauthCode.isExpired()).thenReturn(false);
        when(oauthCode.getAuthentication()).thenReturn(RegisteredServiceTestUtils.getAuthentication());
        when(oauthCode.getExpirationPolicy()).thenReturn(NeverExpiresExpirationPolicy.INSTANCE);
        ticketRegistry.addTicket(oauthCode);
    }
This is {@link OAuth20RevocationRequestValidatorTests}.

@author Julien Huon
@since 6.2.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/validator/token/OAuth20RevocationRequestValidatorTests.java