@AfterAll
    public static void cleanUp() {
        try {
            val gitRepoDir = new File(FileUtils.getTempDirectory(), "cas-sample-data");
            FunctionUtils.doAndHandle(
                __ -> PathUtils.deleteDirectory(gitRepoDir.toPath(), StandardDeleteOption.OVERRIDE_READ_ONLY));
            val gitDir = new File(FileUtils.getTempDirectory(), GitServiceRegistryProperties.DEFAULT_CAS_SERVICE_REGISTRY_NAME);
            if (gitDir.exists()) {
                FunctionUtils.doAndHandle(
                    __ -> PathUtils.deleteDirectory(gitDir.toPath(), StandardDeleteOption.OVERRIDE_READ_ONLY));
            }
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
    }
This is {@link GitServiceRegistryTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-service-registry/src/test/java/org/apereo/cas/services/GitServiceRegistryTests.java