@Test
public void testJournalParser() {

    String path = "/test-documents/testJournalParser.pdf";
    ContentHandler handler = new BodyContentHandler();
    Metadata metadata = new Metadata();
    assumeTrue(canRun());
    InputStream stream = JournalParserTest.class.getResourceAsStream(path);
    JournalParser jParser = new JournalParser();
    try {
        jParser.parse(stream, handler, metadata, new ParseContext());
    } catch (Exception e) {
        e.printStackTrace();
        fail(e.getMessage());
    }
    assertNotNull(metadata.get("grobid:header_Title"));
}