@Test
public void test_on_message_processNLP__when_doc_found_in_index() throws Exception {

    when(pipeline.initialize(any())).thenReturn(true);
    Document doc = createDoc("content").build();
    when(pipeline.process(doc)).thenReturn(emptyList());
    when(indexer.get("projectName", doc.getId(), "routing")).thenReturn(doc);
    nlpListener.findNamedEntities("projectName", doc.getId(), "routing");
    verify(pipeline).initialize(ENGLISH);
    verify(pipeline).process(doc);
}