LDAPAuthority implements Authority { @Override public String getDomain() { return "user"; }  @Override void initialize(); @Override String getID(); @Override String getDomain(); @Override String getHeader(); @Override String getAuthenticateChallenge(); @Override boolean allowAuthorization(); @Override Principal authenticate(String creds, String remoteAddr, String httpMethod, StringBuilder errMsg);  }
@Test public void testGetDomain() { ldapAuthority = new LDAPAuthority(); ldapAuthority.initialize(); assertEquals(ldapAuthority.getDomain(),"user"); }