@Test
public void testLoad() throws IOException {

    Path sampleFile = newLegacySample();
    Index expectedIndex = sampleIndex.withName(MoreFiles.getNameWithoutExtension(sampleFile));
    try (Indexer indexer = new LegacyIndexer(sampleFile)) {
        assertThat(indexer.loadIndex()).isEqualTo(expectedIndex);
    }
}