@Test
public void testNullImage() throws IOException {

  ImagePool.Image image = myPool.copyOf(null);
  assertNotNull(image);
  assertEquals(0, image.getWidth());
  assertEquals(0, image.getHeight());
  assertNull(image.getCopy());
  BufferedImage original = getSampleImage();
  BufferedImage buffer = getSampleImage();
  ImageDiffUtil.assertImageSimilar("sample", original, buffer, 0.0);
  // Using the null image shouldn't affect the destination
  image.drawImageTo(buffer);
  ImageDiffUtil.assertImageSimilar("sample", original, buffer, 0.0);
}