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

    PDImageXObject result = PageImageWriter.toPDXImageObject(customNonPdfInput("image/cmyk.jpg"));
    assertThat(result.getColorSpace(), is(PDDeviceRGB.INSTANCE));
    assertThat(result.getHeight(), is(560));
    assertThat(result.getWidth(), is(1400));
    assertFalse("Original bytes should not be used; the image should be converted from CMYK to RGB",
            IOUtils.contentEquals(result.getCOSObject().getFilteredStream(), customNonPdfInput("image/cmyk.jpg").getSource()));
}