@Test
    void testArchiveRemovedFile() {
        setConfigValueMapper(DataStoreServiceConfig.class, config -> config
                .withFileSystemCleanOldAge(StroomDuration.ofDays(1)));
        final String feedName = FileSystemTestUtil.getUniqueTestString();

        final Meta meta = commonTestScenarioCreator.createSample2LineRawFile(feedName, StreamTypeNames.RAW_EVENTS);

        Collection<Path> files = fileFinder.findAllStreamFile(meta);

        for (final Path file : files) {
            listContents(file.getParent());
            assertThat(FileUtil.delete(file)).isTrue();
        }

        final FindDataVolumeCriteria streamVolumeCriteria = FindDataVolumeCriteria.create(meta);

        assertThat(dataVolumeService.find(streamVolumeCriteria).size() >= 1)
                .as("Must be saved to at least one volume")
                .isTrue();

        final FsOrphanFileFinderSummary summary = new FsOrphanFileFinderSummary();
        scan(summary);
        assertThat(summary.toString()).isEqualTo("");

        files = fileFinder.findAllStreamFile(meta);

        assertThat(files.size())
                .as("Files have been deleted above")
                .isEqualTo(0);

        assertThat(dataVolumeService.find(streamVolumeCriteria).size() >= 1)
                .as("Volumes should still exist as they are new")
                .isTrue();

        final FsOrphanFileFinderSummary summary2 = new FsOrphanFileFinderSummary();
        scan(summary2);
        assertThat(summary2.toString()).isEqualTo("");
    }
NOTE ERROR LOGGING "processDirectory() - Missing Files for..." is expected.
stroom-app/src/test/java/stroom/data/store/impl/fs/TestOrphanFileFinder.java