@Test
    void verifyNoEntity() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
                     
        val registeredService = SamlIdPTestUtils.getSamlRegisteredService();
        registeredService.setServiceId("something-else");
        val service = RegisteredServiceTestUtils.getService(registeredService.getServiceId());
        WebUtils.putServiceIntoFlowScope(context, service);
        servicesManager.save(registeredService);
                                          
        val result = samlIdPMetadataUIParserAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        assertNull(WebUtils.getServiceUserInterfaceMetadata(context, SamlMetadataUIInfo.class));

    }
This is {@link SamlIdPMetadataUIActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/web/flow/SamlIdPMetadataUIActionTests.java