}
}
public void testReadImageFormat() throws Exception {
File dir1 = new File("./src/test/resources/conf.test/simpleimage/rgb");
ImageWrapper img = read(dir1, "adobe_RGB_1998.jpg");
assertEquals(ImageFormat.JPEG, img.getImageFormat());
File dir2 = new File("./src/test/resources/conf.test/simpleimage/gif");
img = read(dir2, "1212.gif");
assertEquals(ImageFormat.GIF, img.getImageFormat());
File dir3 = new File("./src/test/resources/conf.test/simpleimage/png");
img = read(dir3, "dst.png");
assertEquals(ImageFormat.PNG, img.getImageFormat());
File dir4 = new File("./src/test/resources/conf.test/simpleimage/bmp");
img = read(dir4, "normal.bmp");
assertEquals(ImageFormat.BMP, img.getImageFormat());
File dir5 = new File("./src/test/resources/conf.test/simpleimage/tiff");
img = read(dir5, "input_16.tiff");
assertEquals(ImageFormat.TIFF, img.getImageFormat());
}