### Question:
SAML2SSOManager { public String handleAuthenticationRequestForRedirectBinding(Request request) throws SSOException { RequestAbstractType requestMessage = buildAuthnRequest(request); return prepareRedirectRequest(requestMessage); } SAML2SSOManager(WebAppSingleSignOn context); String handleAuthenticationRequestForPOSTBinding(Request request); String handleAuthenticationRequestForRedirectBinding(Request request); String handleLogoutRequestForPOSTBinding(Request request); String handleLogoutRequestForRedirectBinding(Request request); void processResponse(Request request);  }### Answer:
@Test(description = "Tests handling a SAML 2.0 Authentication Request for HTTP-Redirect binding") public void testHandlingAuthRequestForRedirectBinding() throws SSOException { Optional<AppServerWebAppConfiguration> configuration = ContextConfigurationLoader.getContextConfiguration(barContext); if (configuration.isPresent()) { manager = new SAML2SSOManager(configuration.get().getSingleSignOnConfiguration()); Request request = mock(Request.class); when(request.getContextPath()).thenReturn("/" + TestConstants.BAR_CONTEXT); when(request.getHost()).thenReturn(host); request.setAttribute(Constants.IS_FORCE_AUTH_ENABLED, "false"); request.setAttribute(Constants.IS_PASSIVE_AUTH_ENABLED, "true"); String url = manager.handleAuthenticationRequestForRedirectBinding(request); Assert.assertTrue(url.startsWith(TestConstants.DEFAULT_IDP_URL)); } else { Assert.fail(); } }