def METHOD_NAME(monkeypatch):
    with tempfile.TemporaryDirectory() as srcdir:
        with tempfile.TemporaryDirectory() as targdir:
            mocked_files = MockedGetFiles(files=[TESTCERT, TESTLINK])
            mocked_dirs = MockedGetDirs(dirs={srcdir: targdir})
            monkeypatch.setattr(scanblacklistca, '_get_files', mocked_files)
            monkeypatch.setattr(scanblacklistca, '_get_dirs', mocked_dirs)
            monkeypatch.setattr(api, 'current_actor', CurrentActorMocked())
            monkeypatch.setattr(api, "produce", produce_mocked())
            scanblacklistca.process()
            assert mocked_files.called == 1
            assert len(mocked_files.targets) == 1
            assert mocked_files.targets[0] == srcdir
            assert api.produce.called == 2
            assert len(api.produce.model_instances) == 2
            assert isinstance(api.produce.model_instances[0], BlackListCA)
            assert isinstance(api.produce.model_instances[1], BlackListCA)
            assert api.produce.model_instances[0].sourceDir == srcdir
            assert api.produce.model_instances[0].source == os.path.join(srcdir, TESTCERT)
            assert api.produce.model_instances[0].target == os.path.join(targdir, TESTCERT)
            assert api.produce.model_instances[0].targetDir == targdir
            assert api.produce.model_instances[1].sourceDir == srcdir
            assert api.produce.model_instances[1].source == os.path.join(srcdir, TESTLINK)
            assert api.produce.model_instances[1].target == os.path.join(targdir, TESTLINK)
            assert api.produce.model_instances[1].targetDir == targdir