@Override
    @NotNull
    public List<PartitionStatistics> select(Collection<PartitionStatistics> statistics, Set<Long> excludeTables) {
        long now = System.currentTimeMillis();
        return statistics.stream()
                .filter(p -> p.getNextCompactionTime() <= now)
                .filter(p -> !excludeTables.contains(p.getPartition().getTableId()))
                .filter(p -> isReadyForCompaction(p, now))
                .collect(Collectors.toList());
    }
@Test
    public void testEmpty() {
        List<PartitionStatistics> statisticsList = new ArrayList<>();
        Assert.assertEquals(0, selector.select(statisticsList, new HashSet<Long>()).size());
    }