### Question:
JaspiAuthModuleWrapper extends AuthLoginModule implements AMPostAuthProcessInterface { public void onLoginFailure(Map requestParamsMap, HttpServletRequest request, HttpServletResponse response) throws AuthenticationException { } JaspiAuthModuleWrapper(T serverAuthModule, String resourceBundleName); @Override void init(Subject subject, Map sharedState, Map options); @Override int process(Callback[] callbacks, int state); void onLoginSuccess(Map requestParamsMap, HttpServletRequest request, HttpServletResponse response,
            SSOToken ssoToken); void onLoginFailure(Map requestParamsMap, HttpServletRequest request, HttpServletResponse response); void onLogout(HttpServletRequest request, HttpServletResponse response, SSOToken ssoToken);  }### Answer:
@Test public void shouldCallOnLoginFailureAndDoNothing() throws AuthenticationException { Map requestParamsMap = new HashMap(); HttpServletRequest request = mock(HttpServletRequest.class); HttpServletResponse response = mock(HttpServletResponse.class); jaspiAuthModuleWrapper.onLoginFailure(requestParamsMap, request, response); verifyZeroInteractions(amLoginModuleBinder, serverAuthModule); }