@Test
public void parseValidEpub2ChecksumTest() throws Exception {

    File epubFile = new File(MINIMAL_EPUB_FILEPATH);
    EpubModule em = new EpubModule();
    JhoveBase je = new JhoveBase();
    je.setChecksumFlag(true);
    em.setBase(je);
    RepInfo info = new RepInfo(epubFile.getAbsolutePath());
    em.parse(new FileInputStream(epubFile), info, 0);
    Map<ChecksumType, String> checksums = new HashMap<ChecksumType, String>();
    info.getChecksum().forEach(cs -> checksums.put(cs.getType(), cs.getValue()));
    assertEquals("8b80b526", checksums.get(ChecksumType.CRC32));
    assertEquals("b2110219d62c3c6ef1683c645636fd38", checksums.get(ChecksumType.MD5));
    assertEquals("79f20f6a499a640019a9bb0334652edbb954c3c9", checksums.get(ChecksumType.SHA1));
    assertEquals("4776bb33b1cce8598b31996ed0b4daf36e4b74e379b811a27e51efa15315744a", checksums.get(ChecksumType.SHA256));
    final int expectedNumChecksum = 4;
    assertEquals(expectedNumChecksum, info.getChecksum().size());
}