@Test
 public void testGetAllAuthoritiesSorted() throws Exception {
   dao.setRoleComparator(new DefaultRoleComparator());
   List<String> authorities = dao.getAllRoles();
   if (logger.isDebugEnabled()) {
     logger.debug("testGetAllAuthoritiesSorted(): Authorities: " + authorities); // $NON-NLS-1$
   }
   assertTrue(
       authorities.indexOf(new GrantedAuthorityImpl("ROLE_THREE"))
           < authorities.indexOf(new GrantedAuthorityImpl("ROLE_TWO")));
 }