@Test
public void testCalcSimilarityPixelByPixel() throws Exception {

	BufferedImage image1 = ImageIO.read(getClass().getResource("hifive_logo.png"));
	BufferedImage image2 = ImageIO.read(getClass().getResource("hifive_logo.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();
	assertThat(actual, is(1.0));
}