@Test(timeout = 60000)
public void testRequestWithIncompleteAuthorization() throws Exception {

  HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
  HttpServletResponse response = Mockito.mock(HttpServletResponse.class);
  Mockito.when(request.getHeader(HttpConstants.AUTHORIZATION_HEADER))
      .thenReturn(HttpConstants.BASIC);
  Assert.assertNull(handler.authenticate(request, response));
}