@Test
public void testCropImage() {

	// No parameters
	BufferedImage bi = new BufferedImage(100, 200, BufferedImage.TYPE_INT_ARGB);
	BufferedImage outputImage = manipulator.crop(bi, null);
	assertEquals(100, outputImage.getWidth());
	assertEquals(200, outputImage.getHeight());
	assertEquals("No cropping operation should have occured", bi.hashCode(), outputImage.hashCode());
	// Valid cropping
	bi = new BufferedImage(100, 200, BufferedImage.TYPE_INT_ARGB);
	outputImage = manipulator.crop(bi, new ImageManipulationParametersImpl().setRect(1, 1, 20, 25).getRect());
	assertEquals(25, outputImage.getWidth());
	assertEquals(20, outputImage.getHeight());
}