@Test
public void testGetTightDiffArea() throws Exception {

	Rectangle rectangle = new Rectangle(0, 0, 90, 90);
	int xLimit = 100;
	int yLimit = 100;
	Rectangle actual = ImageUtils.getTightDiffArea(rectangle, xLimit, yLimit);
	assertThat(actual.getX(), is(0.0));
	assertThat(actual.getY(), is(0.0));
	assertThat(actual.getWidth(), is(87.0));
	assertThat(actual.getHeight(), is(87.0));
}