@Test public void getInfo() throws IOException { addObject("object1", new byte[] {0x01, 0x02, 0x03}); addObject("object2", new byte[] {0x01, 0x02}); addObject("object3", new byte[] {0x01, 0x02, 0x03, 0x04, 0x05}); assertEquals(10, container.getBytesUsed()); assertEquals(3, container.getCount()); }
@Test public void numberOfObjects() throws IOException { addObjects(3); assertEquals(3, container.getCount()); }