@Test
    void testScanLotsOfFiles() throws IOException {
        setConfigValueMapper(DataStoreServiceConfig.class, config -> config
                .withFileSystemCleanOldAge(StroomDuration.ofDays(1)));
        final FsOrphanFileFinderSummary summary = new FsOrphanFileFinderSummary();
        scan(summary, false);
        assertThat(summary.toString()).isEqualTo("");

        final String feedName = FileSystemTestUtil.getUniqueTestString();
        final long endTime = System.currentTimeMillis();
        final long twoDaysTime = 1000 * 60 * 60 * 24 * 2;
        final long tenMin = 1000 * 60 * 10;
        final long startTime = endTime - twoDaysTime;
        for (long time = startTime; time < endTime; time += tenMin) {
            final MetaProperties metaProperties = MetaProperties.builder()
                    .feedName(feedName)
                    .typeName(StreamTypeNames.RAW_EVENTS)
                    .createMs(time)
                    .build();
            try (final Target target = streamStore.openTarget(metaProperties)) {
                TargetUtil.write(target, "TEST");
            }
        }

        final FsOrphanFileFinderSummary summary2 = new FsOrphanFileFinderSummary();
        scan(summary2, false);
        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