@Override
    public SortedSet<IndexRange> findAll() {
        try (DBCursor<MongoIndexRange> cursor = collection.find(DBQuery.notExists("start"))) {
            return ImmutableSortedSet.copyOf(IndexRange.COMPARATOR, (Iterator<? extends IndexRange>) cursor);
        }
    }
@Test
    @MongoDBFixtures("MongoIndexRangeServiceTest-LegacyIndexRanges.json")
    public void findAllReturnsAllIgnoresLegacyIndexRanges() throws Exception {
        assertThat(indexRangeService.findAll()).hasSize(1);
    }