### Question:
SSORequestResolver { public boolean isSAML2SSOResponse() { return request != null && request.getParameter(Constants.HTTP_POST_PARAM_SAML_RESPONSE) != null; } SSORequestResolver(HttpServletRequest request, WebAppSingleSignOn ssoConfiguration); boolean isURLToSkip(); boolean isHttpPOSTBinding(); boolean isSAML2SSOResponse(); boolean isSLOURL();  }### Answer:
@Test(description = "Tests whether the SAMLResponse parameter of the request is set") public void testForSAMLResponse() { Request request = mock(Request.class); when(request.getParameter(Constants.HTTP_POST_PARAM_SAML_RESPONSE)).thenReturn("content"); SSORequestResolver resolver = new SSORequestResolver(request, ssoConfiguration); Assert.assertTrue(resolver.isSAML2SSOResponse()); }