@Test
    void verifyExportOperation() throws Throwable {
        val service = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        servicesManager.save(service);
        mockMvc.perform(get("/actuator/registeredServices/export")
                .accept(MediaType.APPLICATION_OCTET_STREAM_VALUE))
            .andExpect(status().isOk());
        mockMvc.perform(get("/actuator/registeredServices/export/{id}", service.getId())
                .accept(MediaType.APPLICATION_OCTET_STREAM_VALUE))
            .andExpect(status().isOk());
    }
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