@Test
public void test_embedded_file_not_found() throws Exception {

    try {
        new EmbeddedDocumentMemoryExtractor(new UpdatableDigester("prj", "SHA-256")).
                extract(tikaDocument, "unknownDigest");
        fail("NullPointerException should have been thrown");
    } catch (ContentNotFoundException npe) {
        assertThat(npe.getMessage()).contains("<unknownDigest> embedded document not found in root document");
        assertThat(npe.getMessage()).contains("documents/recursive_embedded.docx");
    }
}