throws Throwable, IOException, MalformedURLException {
InputStream stream = TestUtilities.
doImageTranscodeTest(expectations, rule, image,
null, true);
RenderedOp img = JAI.create("ImageRead", ImageIO.createImageInputStream(stream));
if (expected.equals("tc")) {
assertEquals("Image is not truecolour", true,
TestUtilities.isTrueColour(img));
} else if (expected.equals("mono")) {
assertEquals("Image is not Monochrome", true,