@Test
public void testFindDominantOffset() throws Exception {

	BufferedImage image1 = ImageIO.read(getClass().getResource("ImageUtilsTest_dominant_expected.png"));
	BufferedImage image2 = ImageIO.read(getClass().getResource("ImageUtilsTest_dominant_merge.png"));
	// 0に近いほど領域の内容の違いを無視して計算する
	// デフォルトは0.1
	double diffThreshold = ComparisonParameterDefaults.getDiffThreshold();
	Offset expected = new Offset(5, 5);
	Offset actual = ImageUtils.findDominantOffset(image1, image2, diffThreshold);
	assertThat(actual.getX(), is(expected.getX()));
	assertThat(actual.getY(), is(expected.getY()));
}