@Test
public void testAccessAuthoritySupport() {

    ZTSAuthorizer authz = new ZTSAuthorizer(null);
    Authority authority = Mockito.mock(Authority.class);
    Mockito.when(authority.allowAuthorization()).thenReturn(false);
    Principal principal = Mockito.mock(Principal.class);
    Mockito.when(principal.getAuthority()).thenReturn(authority);
    assertFalse(authz.access("op", "resource", principal, null));
}