@Test
public void testJPEGTitleAndDescriptionPhotoshop() throws Exception {

    Metadata metadata = new Metadata();
    metadata.set(Metadata.CONTENT_TYPE, "image/jpeg");
    try (InputStream stream =
                 getClass().getResourceAsStream("/test-documents/testJPEG_commented_pspcs2mac.jpg")) {
        parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
    }
    // embedded comments with non-ascii characters
    assertEquals("Tosteberga \u00C4ngar", metadata.get(TikaCoreProperties.TITLE));
    assertEquals("Bird site in north eastern Sk\u00E5ne, Sweden.\n(new line)", metadata.get(TikaCoreProperties.DESCRIPTION));
    assertEquals("Some Tourist", metadata.get(TikaCoreProperties.CREATOR));
    List<String> keywords = Arrays.asList(metadata.getValues(TikaCoreProperties.SUBJECT));
    assertTrue("got " + keywords, keywords.contains("bird watching"));
}