@Test
public void test_embedded_file_content_extraction_should_have_same_hashes_than_extracted_docs() throws Exception {

    Extractor extractor = new Extractor(documentFactory);
    extractor.setDigester(new UpdatableDigester("prj", "SHA-256"));
    TikaDocument extracted = extractor.extract(Paths.get(getClass().getResource("/documents/recursive_embedded.docx").getPath()));
    try (Reader reader = extracted.getReader()) {
        Spewer.toString(reader);
    }
    EmbeddedDocumentMemoryExtractor contentExtractor = new EmbeddedDocumentMemoryExtractor(
            new UpdatableDigester("prj", "SHA-256"));
    assertThat(extracted.getEmbeds()).hasSize(2);
    assertThat(contentExtractor.extract(extracted, extracted.getEmbeds().get(0).getId())).isNotNull();
    assertThat(contentExtractor.extract(extracted, extracted.getEmbeds().get(1).getId())).isNotNull();
    assertThat(contentExtractor.extract(extracted, extracted.getEmbeds().get(1).getEmbeds().get(0).getId())).isNotNull();
}