### Question:
SSORequestResolver { public boolean isURLToSkip() { return !((ssoConfiguration == null) || (request == null)) && ssoConfiguration.getSkipURIs() != null && Optional.ofNullable(ssoConfiguration.getSkipURIs().getSkipURIs()) .orElse(new ArrayList<>()) .contains(request.getRequestURI()); } SSORequestResolver(HttpServletRequest request, WebAppSingleSignOn ssoConfiguration); boolean isURLToSkip(); boolean isHttpPOSTBinding(); boolean isSAML2SSOResponse(); boolean isSLOURL();  }### Answer:
@Test(description = "Tests for a request URI to be skipped") public void testSkipURIRequest() { Request request = mock(Request.class); when(request.getRequestURI()).thenReturn(TestConstants.SKIP_URI_ONE); SSORequestResolver resolver = new SSORequestResolver(request, ssoConfiguration); Assert.assertTrue(resolver.isURLToSkip()); }
@Test(description = "Tests for a request URI which is not to be skipped") public void testNonSkipURIRequest() { Request request = mock(Request.class); when(request.getRequestURI()).thenReturn(TestConstants.NON_SKIP_URI); SSORequestResolver resolver = new SSORequestResolver(request, ssoConfiguration); Assert.assertFalse(resolver.isURLToSkip()); }