CertificateAuthority implements Authority { @Override public CredSource getCredSource() { return CredSource.CERTIFICATE; }  @Override void initialize(); @Override String getID(); @Override String getDomain(); @Override String getHeader(); @Override String getAuthenticateChallenge(); @Override Principal authenticate(String creds, String remoteAddr, String httpMethod, StringBuilder errMsg); @Override CredSource getCredSource(); @Override Principal authenticate(X509Certificate[] certs, StringBuilder errMsg);  }
@Test public void testGetCredSource() { CertificateAuthority authority = new CertificateAuthority(); authority.initialize(); assertEquals(CredSource.CERTIFICATE, authority.getCredSource()); }