def METHOD_NAME(cls):
    if hasattr(super(), "setUpTestData"):
        super().METHOD_NAME()
    site = Site.objects.get_current()
    site.domain = "testserver"
    site.save()
    binding = os.getenv("CMIS_BINDING")
    if binding == "WEBSERVICE":
        config = CMISConfig.get_solo()
        config.client_url = f"{ALFRESCO_BASE_URL}cmisws"
        config.binding = "WEBSERVICE"
        config.other_folder_path = "/DRC/"
        config.zaak_folder_path = "/ZRC/{{ zaaktype }}/{{ zaak }}"
        config.save()
        # Configure the main_repo_id
        client = get_cmis_client()
        config.main_repo_id = client.get_main_repo_id()
        config.save()
    elif binding == "BROWSER":
        config = CMISConfig.get_solo()
        config.client_url = (
            f"{ALFRESCO_BASE_URL}api/-default-/public/cmis/versions/1.1/browser"
        )
        config.binding = "BROWSER"
        config.other_folder_path = "/DRC/"
        config.zaak_folder_path = "/ZRC/{{ zaaktype }}/{{ zaak }}/"
        config.save()
    else:
        raise Exception("No CMIS binding specified")
    if settings.CMIS_URL_MAPPING_ENABLED:
        UrlMapping.objects.create(
            long_pattern="http://testserver",
            short_pattern="http://ts",
            config=config,
        )
        UrlMapping.objects.create(
            long_pattern="http://example.com",
            short_pattern="http://ex.com",
            config=config,
        )
        UrlMapping.objects.create(
            long_pattern="http://openzaak.nl",
            short_pattern="http://oz.nl",
            config=config,
        )
    # add local service configuration - required for composite urls
    Service.objects.create(api_root="http://testserver/", api_type=APITypes.orc)