@Test
    public void entriesValid() {
        assertEquals("Bundle entry lists must match in size",
                bundle.entries().size(), bundle.entryInfos().size());

        bundle.entries().forEach(uncheck(entry -> {
            CountingOutputStream cos = new CountingOutputStream(new NullOutputStream());
            IOUtils.copy(entry.inputStream(), cos);
            assertEquals("Entry size must match size of InputStream", entry.size(), cos.getCount());
        }));
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/test/java/info/ata4/test/junity/BundleTest.java