private static TicketGrantingTicket createTicketGrantingTicket() {
        val mock = mock(TicketGrantingTicket.class);
        val authentication = createAuthentication();
        when(mock.getAuthentication()).thenReturn(authentication);
        when(mock.isRoot()).thenReturn(true);
        when(mock.getRoot()).thenReturn(mock);
        return mock;
    }
Class to test {@link RegisteredServiceAccessStrategyAuditableEnforcer}.

@author Travis Schmidt
@since 6.1.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/util/RegisteredServiceAccessStrategyAuditableEnforcerTests.java