@Test
blic void testCaseSensitiveGroupName() throws Exception {

runTestAsSubject(new TestOperation() {
  @Override
  public void runTestAsSubject() throws Exception {
    // create the role for test
    client.createRole(requestorName, TEST_ROLE_NAME_1, SOLR);
    // add role to a group (lower case)
    String[] args = { "-arg", "-r", TEST_ROLE_NAME_1, "-g", "group1", "-conf",
        confPath.getAbsolutePath() };
    SentryShellSolr.main(args);
    // validate the roles when group name is same case as above
    args = new String[] { "-lr", "-g", "group1", "-conf", confPath.getAbsolutePath() };
    SentryShellSolr sentryShell = new SentryShellSolr();
    Set<String> roleNames = getShellResultWithOSRedirect(sentryShell, args, true);
    validateRoleNames(roleNames, TEST_ROLE_NAME_1);
    // roles should be empty when group name is different case than above
    args = new String[] { "-lr", "-g", "GROUP1", "-conf", confPath.getAbsolutePath() };
    roleNames = getShellResultWithOSRedirect(sentryShell, args, true);
    validateRoleNames(roleNames);
  }
  });
}