public void testLoadUserByUsername() {
    String username = "******";
    UserDetails details = detailsService.loadUserByUsername(username);
    OWFUserDetailsImpl owfDetails;

    assertTrue(new IsInstanceOf(OWFUserDetailsImpl.class).matches(details));
    owfDetails = (OWFUserDetailsImpl) details;
    assertEquals(username, owfDetails.getDisplayName());
    assertEquals(username + "@ozonePerfTesting.org", owfDetails.getEmail());
    assertEquals(username + " organization", owfDetails.getOrganization());
  }
 @Test
 public void testGetAuthoritiesForAdmin() {
   HashSet<GrantedAuthority> actualAuthorities =
       new HashSet<GrantedAuthority>(detailsService.getAuthorities("userAdmin"));
   assertEquals(actualAuthorities, adminAuthorities);
 }