@Test
public void test_get_source_for_root_doc() throws IOException {

    Document document = new Document(project("project"), get(getClass().getResource("/docs/embedded_doc.eml").getPath()), "it has been parsed",
                Language.FRENCH, Charset.defaultCharset(), "message/rfc822", new HashMap<>(),
                Document.Status.INDEXED, 45L);
    InputStream source = new SourceExtractor().getSource(document);
    assertThat(source).isNotNull();
    assertThat(getBytes(source)).hasSize(70574);
}