@Test
public void test_Gray_ICC_png() throws TaskIOException, IOException {

    PDImageXObject result = PageImageWriter.toPDXImageObject(customNonPdfInput("image/icc_profile_gray.png"));
    assertThat(result.getColorSpace(), is(PDDeviceRGB.INSTANCE));
    assertFalse("Original bytes should not be used; the image should be converted from ICC Gray to RGB",
            IOUtils.contentEquals(result.getCOSObject().getFilteredStream(), customNonPdfInput("image/icc_profile_gray.png").getSource()));
}