public static boolean isAllInventoryTasksFinished(final Collection<PipelineTask> inventoryTasks) {
        if (inventoryTasks.isEmpty()) {
            log.warn("inventoryTasks is empty");
        }
        return inventoryTasks.stream().allMatch(each -> each.getTaskProgress().getPosition() instanceof IngestFinishedPosition);
    }
@Test
    void assertAllInventoryTasksAreFinishedWhenCollectionIsEmpty() {
        assertTrue(PipelineJobProgressDetector.isAllInventoryTasksFinished(Collections.emptyList()));
    }