ScreenshotImage { public boolean isImageCached() { return image != null; } ScreenshotImage();  ScreenshotImage(BufferedImage image); boolean isImageCached(); BufferedImage get(); InputStream getAsStream(); @Override String toString();  }
@Test public void testIsImageCached() throws Exception { ScreenshotImage si = new ScreenshotImage(image); assertThat(si.isImageCached(), is(true)); }