@Test
public void test_extract_embedded_without_ocr() throws Exception {

    EmbeddedDocumentMemoryExtractor contentExtractor = new EmbeddedDocumentMemoryExtractor(
            new CommonsDigester(20 * 1024 * 1024, CommonsDigester.DigestAlgorithm.SHA256.toString()), "SHA-256", false);
    TikaDocumentSource actual = contentExtractor.extract(documentFactory.create(Paths.get(getClass().getResource("/documents/embedded_with_duplicate.tgz").getPath())),
            "f69680093a1c466d628c7b352a449e8e8a0ce291f61837f9bed9d55ff3658544");
    assertThat(new String(actual.content).replace("\n", "")).isEqualTo("level2");
}