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

        val id = UUID.randomUUID().toString();
        context.setParameter(WsFederationNavigationController.PARAMETER_NAME, id);
        assertThrows(UnauthorizedServiceException.class,
            () -> wsFederationNavigationController.redirectToProvider(id,
                context.getHttpServletRequest(), context.getHttpServletResponse()));
    }
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