@Test
public void testJPEGoddTagComponent() throws Exception {

    Metadata metadata = new Metadata();
    metadata.set(Metadata.CONTENT_TYPE, "image/jpeg");
    try (InputStream stream = getClass().getResourceAsStream("/test-documents/testJPEG_oddTagComponent.jpg")) {
        parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
    }
    assertEquals(null, metadata.get(TikaCoreProperties.TITLE));
    assertEquals(null, metadata.get(TikaCoreProperties.DESCRIPTION));
    assertEquals("251", metadata.get(Metadata.IMAGE_WIDTH));
    assertEquals("384", metadata.get(Metadata.IMAGE_LENGTH));
}