RestAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override public void commence(final HttpServletRequest request, final HttpServletResponse response, final AuthenticationException authException) throws IOException { response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized"); }  @Override void commence(final HttpServletRequest request,
			final HttpServletResponse response,
			final AuthenticationException authException);  }
@Test public void testCommence() throws Exception { unit.commence(request, response, authException);; verify(response).sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized"); }