@Test
    void verifyImportOperationAsYaml() throws Throwable {
        val content = new RegisteredServiceYamlSerializer(applicationContext)
            .toString(RegisteredServiceTestUtils.getRegisteredService());
        mockMvc.perform(post("/actuator/registeredServices/import")
                .contentType(MEDIA_TYPE_CAS_YAML)
                .content(content))
            .andExpect(status().isCreated());
    }
This is {@link RegisteredServicesEndpointTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/RegisteredServicesEndpointTests.java