@Test
  public void testGuest() throws Exception {
    securityService.login(loginCredentials("guest", "guest"));
    securityService.authorize(TestCommand.none);
    securityService.authorize(TestCommand.everyOneAllowed);

    assertNotAuthorized(ResourcePermissions.DATA_READ);
    assertNotAuthorized(ResourcePermissions.DATA_WRITE);
    assertNotAuthorized(TestCommand.regionARead);
    assertNotAuthorized(TestCommand.regionAWrite);
    assertNotAuthorized(ResourcePermissions.CLUSTER_READ);
    assertNotAuthorized(ResourcePermissions.CLUSTER_WRITE);
  }
Integration tests for SecurityService using shiro.ini
geode-core/src/integrationTest/java/org/apache/geode/management/internal/security/SecurityServiceWithShiroIniIntegrationTest.java