### Question:
ChaosAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override public void commence (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException { ChaosWebSecurity.logUnsuccessfulRequest("Unauthorized request", httpServletRequest); httpServletResponse.sendError(HttpStatus.NOT_FOUND.value(), HttpStatus.NOT_FOUND.getReasonPhrase()); }  @Override void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e);  }### Answer:
@Test public void commence () throws Exception { chaosAuthenticationEntryPoint.commence(request, response, exception); verify(response).sendError(404, "Not Found"); }