@Test
public void testDisableOcr() throws Throwable {

	extractor.disableOcr();
	TikaDocument tikaDocument = extractor.extract(Paths.get(getClass().getResource("/documents/ocr/simple.tiff").getPath()));
	final int read = tikaDocument.getReader().read();
	Assert.assertEquals("image/tiff", tikaDocument.getMetadata().get(Metadata.CONTENT_TYPE));
	Assert.assertEquals(-1, read);
}