### Question:
SSORequestResolver { public boolean isSLOURL() { return !((ssoConfiguration == null) || (request == null)) && (ssoConfiguration.isSLOEnabled()) && (request.getRequestURI().endsWith(Optional.ofNullable(ssoConfiguration.getSLOURLPostfix()) .orElse(Constants.DEFAULT_SLO_URL_POSTFIX))); } SSORequestResolver(HttpServletRequest request, WebAppSingleSignOn ssoConfiguration); boolean isURLToSkip(); boolean isHttpPOSTBinding(); boolean isSAML2SSOResponse(); boolean isSLOURL();  }### Answer:
@Test(description = "Tests whether the resolver recognizes the URL as a logout request") public void testForSAMLSLORequest() { Request request = mock(Request.class); when(request.getRequestURI()).thenReturn(TestConstants.LOGOUT_REQ_URI); SSORequestResolver resolver = new SSORequestResolver(request, ssoConfiguration); Assert.assertTrue(resolver.isSLOURL()); }
@Test(description = "Tests whether the resolver recognizes the URL as a non-logout request") public void testForNonSAMLSLORequest() { Request request = mock(Request.class); when(request.getRequestURI()).thenReturn(TestConstants.NON_LOGOUT_REQ_URI); SSORequestResolver resolver = new SSORequestResolver(request, ssoConfiguration); Assert.assertFalse(resolver.isSLOURL()); }