HttpBasicAuthenticationHandler extends AbstractHttpAuthenticationHandler { @Override public String getAuthScheme() { return HttpServletRequest.BASIC_AUTH; } HttpBasicAuthenticationHandler();  HttpBasicAuthenticationHandler(final String realm); @Override String getAuthScheme(); @Override Credentials parseCredentials(final HttpServletRequest request); @Override String getRealm();  }
@Test public void testGetAuthScheme() throws Exception { final HttpBasicAuthenticationHandler handler = new HttpBasicAuthenticationHandler(); assertEquals(HttpServletRequest.BASIC_AUTH, handler.getAuthScheme()); }