@Test
public void testCompare_different_1px() throws Exception {

	BufferedImage image1 = ImageIO.read(getClass().getResource("hifive_logo.png"));
	BufferedImage image2 = ImageIO.read(getClass().getResource("hifive_logo.png"));
	// 1pxだけ色を変える
	Random random = new Random();
	int x = random.nextInt(image2.getWidth());
	int y = random.nextInt(image2.getHeight());
	image2.setRGB(x, y, image2.getRGB(x, y) - 1);
	Rectangle rectangle = new Rectangle(0, 0, image1.getWidth(), image2.getHeight());
	DiffPoints result = (DiffPoints) new IgnoringClearPixelsImageComparator().compare(image1, rectangle, image2,
			rectangle);
	assertThat(result.isFailed(), is(true));
	assertThat(result.getDiffPoints().size(), is(1));
	assertThat(result.getSizeDiffPoints().isEmpty(), is(true));
	assertThat(result.getDiffPoints().get(0), is(new Point(x, y)));
}