@Test
public void test_one_email() {

    String content = "this is a content with email@domain.com";
    List<NamedEntity> annotations = pipeline.process(createDocument(content, "docId", Language.ENGLISH));
    assertThat(annotations).hasSize(1);
    assertThat(annotations.get(0).getOffset()).isEqualTo(23);
    assertThat(annotations.get(0).getCategory()).isEqualTo(NamedEntity.Category.EMAIL);
    assertThat(annotations.get(0).getMention()).isEqualTo("email@domain.com");
}