assertFalse(engine.canEnhance(ci) == CANNOT_ENHANCE);
engine.computeEnhancements(ci);
Entry<UriRef,Blob> contentPart = ContentItemHelper.getBlob(ci,
singleton("text/plain"));
assertNotNull(contentPart);
Blob plainTextBlob = contentPart.getValue();
assertNotNull(plainTextBlob);
assertContentRegexp(plainTextBlob,
"Julien Nioche commented on TIKA-461:",
"I'll have a look at mime4j and try to use it in Tika",
"> RFC822 messages not parsed",
"Key: TIKA-461",
"URL: https://issues.apache.org/jira/browse/TIKA-461");
//validate XHTML results
contentPart = ContentItemHelper.getBlob(ci,
singleton("application/xhtml+xml"));
assertNotNull(contentPart);
Blob xhtmlBlob = contentPart.getValue();
assertNotNull(xhtmlBlob);
assertContentRegexp(xhtmlBlob,
"<html xmlns=\"http://www.w3.org/1999/xhtml\">",
"<title></title>",
"<body><p>",