@Test
public void testAuthenticateInternalServerError() {

    HttpServletRequest httpServletRequest = Mockito.mock(HttpServletRequest.class);
    try {
        Http.authenticate(httpServletRequest, null);
    } catch (ResourceException expected) {
        assertEquals(expected.getCode(), 500);
    }
}