@BeforeAll
    public static void prepTests() throws Exception {
        val jsonFolder = new File(FileUtils.getTempDirectory(), JSON_SERVICE_REGISTRY_FOLDER);
        if (jsonFolder.isDirectory()) {
            FunctionUtils.doAndHandle(
                __ -> PathUtils.deleteDirectory(jsonFolder.toPath(), StandardDeleteOption.OVERRIDE_READ_ONLY));
            jsonFolder.delete();
        }
        if (!jsonFolder.mkdir()) {
            throw new IOException("Unable to make json folder: " + jsonFolder.getName());
        }
        FileUtils.cleanDirectory(RESOURCE.getFile());
    }
The {@link SamlRegisteredServiceTests} handles test cases for {@link SamlRegisteredService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/SamlRegisteredServiceTests.java