public void testGrayPNGWithCMYKProfile() throws Exception {
URL imageURL = getClass().getResource("gray-vs-cmyk-profile.png");
Assert.assertNotNull(imageURL);
String uri = imageURL.toURI().toASCIIString();
ImageLoaderImageIO loader = new ImageLoaderImageIO(ImageFlavor.RENDERED_IMAGE);
ImageContext context = MockImageContext.newSafeInstance();
ImageSessionContext session = new MockImageSessionContext(context);
ImageInfo info = new ImageInfo(uri, MimeConstants.MIME_PNG);
Image im = loader.loadImage(info, null, session);
assertTrue(im instanceof ImageRendered);
}