@Test
public void test_transfer_indexed_paths_to_filter_set() throws Exception {

    indexer.add(TEST_INDEX, DocumentBuilder.createDoc("id1").build());
    indexer.add(TEST_INDEX, DocumentBuilder.createDoc("id2").build());
    assertThat(new ScanIndexTask(documentCollectionFactory, indexer, propertiesProvider, User.nullUser(), "test:report").call()).isEqualTo(2);
    ReportMap actualReportMap = documentCollectionFactory.createMap(propertiesProvider, "test:report");
    assertThat(actualReportMap).includes(
            entry(Paths.get("file:/path/to/id1"), new Report(ExtractionStatus.SUCCESS)),
            entry(Paths.get("file:/path/to/id2"), new Report(ExtractionStatus.SUCCESS))
    );
}