@Test
public void testClear() {

    BufferedImage img = GraphicsUtilities.createCompatibleImage(1, 1);
    GraphicsUtilities.clear(img);
    assertThat(GraphicsUtilities.getPixels(img, 0, 0, 1, 1, null)[0], is(0));
}