@Test
public void test_one_email_twice() {

    String content = "this is a content with email@domain.com\n" +
            "that is twice in the document\n" +
            "email@domain.com";
    List<NamedEntity> annotations = pipeline.process(createDocument(content, "docId", Language.ENGLISH));
    assertThat(annotations).hasSize(2);
    NamedEntity nlpTag = annotations.get(1);
    assertThat(nlpTag.getOffset()).isEqualTo(70);
    assertThat(nlpTag.getMention()).isEqualTo("email@domain.com");
}