@Test
  public void testDataReader() throws Exception {
    securityService.login(loginCredentials("dataReader", "12345"));
    securityService.authorize(TestCommand.none);
    securityService.authorize(TestCommand.everyOneAllowed);
    securityService.authorize(TestCommand.regionARead);
    securityService.authorize(ResourcePermissions.DATA_READ);

    assertNotAuthorized(TestCommand.regionAWrite);
    assertNotAuthorized(ResourcePermissions.DATA_WRITE);
    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