@Test
public void testRtfFile() throws Throwable {

	String text;
	TikaDocument tikaDocument = extractor.extract(Paths.get(getClass().getResource("/documents/text/doc.rtf").getPath()));
	try (Reader reader = tikaDocument.getReader()) {
		text = Spewer.toString(reader);
	}
	Assert.assertEquals("application/rtf", tikaDocument.getMetadata().get(Metadata.CONTENT_TYPE));
	Assert.assertEquals("RTF Text Document", text.trim());
}