private static void testGetGroup() {
   final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET);
   try {
     System.out.println(userService.getGroup("ALFRESCO_ADMINISTRATORS"));
   } catch (final GroupException e) {
     e.printStackTrace();
   }
 }
 private static void testGetGroups() {
   final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET);
   try {
     final GroupQuery groupQuery = new GroupQuery();
     System.out.println(userService.getGroups(groupQuery));
   } catch (final GroupException e) {
     e.printStackTrace();
   }
 }
 private static void testGetParentAuthorities() {
   final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET);
   try {
     final AuthorityQuery authorityQuery = new AuthorityQuery();
     authorityQuery.setSortBy(GroupSorter.authorityName);
     System.out.println(userService.getParentAuthorities("EMAIL_CONTRIBUTORS", authorityQuery));
   } catch (final GroupException e) {
     e.printStackTrace();
   }
 }
 private static void testGetChildAuthorities() {
   final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET);
   try {
     final AuthorityQuery authorityQuery = new AuthorityQuery();
     authorityQuery.setSortBy(GroupSorter.authorityName);
     System.out.println(
         userService.getChildAuthorities("ALFRESCO_ADMINISTRATORS", authorityQuery));
   } catch (final GroupException e) {
     e.printStackTrace();
   }
 }