@Test
public void test_acceptance() throws IOException {

    Path emailFile = Paths.get(getClass().getResource("/email.eml").getPath());
    String content = new String(Files.readAllBytes(emailFile));
    List<NamedEntity> annotations = pipeline.process(createDocument(content, "docId", Language.ENGLISH));
    assertThat(annotations).hasSize(10);
}