}
private void checkCase(int width, String protectedArea, int expWidth,
int expHeight)
throws Throwable, IOException, MalformedURLException {
RenderedOp image = null;
image = doResize(OutputImageRules.COLOURJPEG24, width, protectedArea);
assertEquals("Image is not true colour", true,
TestUtilities.isTrueColour(image));
assertEquals(image.getWidth(), expWidth);
assertEquals(image.getHeight(), expHeight);
}