@Test
public void testCalcSimilarityPixelByPixelWithDiff() throws Exception {

	BufferedImage image1 = ImageIO.read(getClass().getResource("hifive_logo.png"));
	BufferedImage image2 = ImageIO.read(getClass().getResource("hifive_logo_similar.png"));
	Rectangle rectangle = new Rectangle(0, 0, image1.getWidth(), image1.getHeight());
	Offset offset = new Offset(0, 0);
	SimilarityUnit calcSimilarityPixelByPixel = SimilarityUtils.calcSimilarityPixelByPixel(image1, image2,
			rectangle, offset);
	double actual = calcSimilarityPixelByPixel.getSimilarityPixelByPixel();
	// expectedの値はhifive_logo.pngとhifive_logo_similar.pngの類似度を事前に計算したSimilarityUtils.getSimilarityPixelByPixelの結果を使用
	assertThat(actual, is(0.99));
}