@Test
public void testGet_image_exists() throws Exception {

	BufferedImage expected = getImage();
	persister.saveScreenshot(metadata, expected);
	ScreenshotImage image = new PersistedScreenshotImage(persister, metadata);
	assertThat(image.isImageCached(), is(false));
	BufferedImage actual = image.get();
	assertThat(ImageUtils.imageEquals(expected, actual), is(true));
	assertThat(image.isImageCached(), is(true));
	BufferedImage i = image.get();
	assertThat(i, is(sameInstance(actual)));
}