@Test
    void verifyEntityIdUIInfoExistsEmbedded() throws Throwable {
        val ctx = MockRequestContext.create(applicationContext);
        val url = "https://google.com?entityId=https://carmenwiki.osu.edu/shibboleth";
        servicesManager.save(RegisteredServiceTestUtils.getRegisteredService("^https://google.com\\?entityId=.+"));

        val service = RegisteredServiceTestUtils.getService(url);
        ctx.setParameter(CasProtocolConstants.PARAMETER_SERVICE, service.getId());
        ctx.getFlowScope().put(CasProtocolConstants.PARAMETER_SERVICE, service);
        samlMetadataUIParserAction.execute(ctx);
        assertNotNull(WebUtils.getServiceUserInterfaceMetadata(ctx, SamlMetadataUIInfo.class));
    }
This is {@link SamlMetadataUIParserActionTests}.

@author Misagh Moayyed
@since 4.1.0
support/cas-server-support-saml-mdui/src/test/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserActionTests.java