@Test
void testBaseNameTest() {

    final StroomZipNameSet stroomZipNameSet = new StroomZipNameSet(true);
    final List<StroomZipEntry> testList = new ArrayList<StroomZipEntry>();
    testList.add(stroomZipNameSet.add("1.hdr"));
    testList.add(stroomZipNameSet.add("1.ctx"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("1.data"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("2.data"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isFalse();
    testList.add(stroomZipNameSet.add("2.ctx"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("2.hdr"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("3.dat"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isFalse();
    testList.add(stroomZipNameSet.add("3.hdr"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("4.dat"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isFalse();
    testList.add(stroomZipNameSet.add("4.hdr"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isTrue();
    testList.add(stroomZipNameSet.add("5.dat"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isFalse();
    testList.add(stroomZipNameSet.add("6.dat"));
    assertThat(testList.get(testList.size() - 2).equalsBaseName(testList.get(testList.size() - 1))).isFalse();
}