@Test
public void testJPEGEmptyEXIFDateTime() throws Exception {

    Metadata metadata = new Metadata();
    metadata.set(Metadata.CONTENT_TYPE, "image/jpeg");
    try (InputStream stream =
                 getClass().getResourceAsStream("/test-documents/testJPEG_EXIF_emptyDateTime.jpg")) {
        parser.parse(stream, new DefaultHandler(), metadata, new ParseContext());
    }
    assertEquals("300.0", metadata.get(TIFF.RESOLUTION_HORIZONTAL));
    assertEquals("300.0", metadata.get(TIFF.RESOLUTION_VERTICAL));
}