}
private void testColorTypePNG(String imageName, int colorType, boolean isTransparent)
throws ImageException, IOException {
ImageContext context = MockImageContext.newSafeInstance();
ImageSessionContext session = new MockImageSessionContext(context);
ImageInfo info = new ImageInfo(imageName, MimeConstants.MIME_PNG);
ImageLoaderRawPNG ilrpng = new ImageLoaderRawPNG();
ImageRawPNG irpng = (ImageRawPNG) ilrpng.loadImage(info, null, session);
ColorModel cm = irpng.getColorModel();
if (colorType == PNG_COLOR_PALETTE) {