@Test
public void testGetSubImage() throws Exception {

	BufferedImage image = ImageIO.read(getClass().getResource("hifive_logo.png"));
	Rectangle rectangle = new Rectangle(0, 0, 30, 30);
	BufferedImage expected = ImageIO.read(getClass().getResource("ImageUtilsTest_get_sub_image.png"));
	BufferedImage actual = ImageUtils.getSubImage(image, rectangle);
	assertThat(ImageUtils.imageEquals(expected, actual), is(true));
}