ImageInfo info = manager.preloadImage(uri, sessionContext);
assertNotNull("ImageInfo must not be null", info);
ImageLoader loader = new ImageLoaderImageIO(ImageFlavor.RENDERED_IMAGE);
ImageProviderPipeline pipeline = new ImageProviderPipeline(manager.getCache(), loader);
pipeline.addConverter(new ImageConverterRendered2PNG());
Image img = pipeline.execute(info, null, sessionContext);
assertNotNull("Image must not be null", img);
assertEquals(ImageFlavor.RAW_PNG, img.getFlavor());
assertTrue(img instanceof ImageRawStream);