AbstractImageBundle aib = createImageBundleAndOpen(AbstractImageBundle.FILE_MODE_READ);
ImageDecoder decoder = JPEGImageUtil.getInstance();
int count = 0;
while (aib.hasNext()) {
aib.next();
FloatImage source = decoder.decodeImage(new FileInputStream("data/test/ImageBundleTestCase/read/" + count + ".jpg"));
FloatImage image = aib.getCurrentImage();
assertEquals(count + " image, first trial fails", source, image);
image = aib.getCurrentImage();
assertEquals(count + " image, second trial fails", source, image);
image = aib.getCurrentImage();
assertEquals(count + " image, third trial fails", source, image);