KerberosAuthority implements Authority { @Override public String getAuthenticateChallenge() { return KRB_AUTH_CHALLENGE; } KerberosAuthority(String servicePrincipal, String keyTabConfFile, String jaasConfigSection);  KerberosAuthority(); Exception getInitState(); void setInitState(Exception exc); long getLoginWindow(); void setLoginWindow(long loginWindowMillis); long getLastLogin(); @Override void initialize(); @Override String getID(); @SuppressWarnings({ "unchecked", "rawtypes" }) synchronized void login(boolean logoutFirst); boolean refreshLogin(String remoteSvcPrincipal); @Override String getDomain(); @Override String getHeader(); @Override String getAuthenticateChallenge(); @Override Principal authenticate(String creds, String remoteAddr, String httpMethod, StringBuilder errMsg);  }
@Test public void testGetAuthenticateChallenge() { KerberosAuthority krbAuthority = new KerberosAuthority(); assertEquals(krbAuthority.getAuthenticateChallenge(), "Negotiate"); }