public void testMeta() throws Exception {
Parse parse = new ParseUtil(NutchConfiguration.create())
.parseByExtensionId("parse-mspowerpoint", content);
ParseData data = parse.getData();
final FileExtensionFilter titleFilter = new FileExtensionFilter(
this.testFile.getName() + ".meta");
final File[] titleFiles = this.sampleDir.listFiles(titleFilter);
if (titleFiles.length > 0) {
assertEquals("Document Title", this.fileToString(titleFiles[0]),
"Title: " + data.getTitle() + LINE_SEPARATOR +
"Outlinks: " + data.getOutlinks().length + LINE_SEPARATOR);
} else {
assertTrue("Document Title length ==0", data.getTitle().length() > 0);
LOG.info("Comparison file for Title not available: "
+ this.testFile.getName() + ".meta");
}
}