@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        context.setRemoteAddr("185.86.151.11");
        context.setLocalAddr("185.88.151.11");
        context.withUserAgent();
        context.setClientInfo();

        val config = wsFederationConfigurations.toList().getFirst();
        val registeredService = RegisteredServiceTestUtils.getRegisteredService("https://wsfedservice");
        registeredService.setProperties(Map.of(RegisteredServiceProperty.RegisteredServiceProperties.WSFED_RELYING_PARTY_ID.getPropertyName(),
            new DefaultRegisteredServiceProperty(config.getRelyingPartyIdentifier())));
        val service = RegisteredServiceTestUtils.getService(registeredService.getServiceId());
        servicesManager.save(registeredService);

        context.setParameter(CasProtocolConstants.PARAMETER_SERVICE, service.getId());
        val id = config.getId();
        context.setParameter(WsFederationNavigationController.PARAMETER_NAME, id);
        val view = wsFederationNavigationController.redirectToProvider(id,
            context.getHttpServletRequest(), context.getHttpServletResponse());
        assertInstanceOf(RedirectView.class, view);
    }
This is {@link WsFederationNavigationControllerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/web/WsFederationNavigationControllerTests.java