@Test
public void testEntityExtraction() throws Exception {
JSONObject visibilityJson = new JSONObject();
visibilityJson.put("source", "");
InMemoryVertex vertex = (InMemoryVertex) graph.prepareVertex("v1", new Visibility(""))
.setProperty("text", "none", new Visibility(""))
.setProperty(LumifyProperties.VISIBILITY_JSON.getPropertyName(), visibilityJson, new Visibility(""))
.save(new InMemoryAuthorizations());
graph.flush();
GraphPropertyWorkData workData = new GraphPropertyWorkData(vertex, vertex.getProperty("text"), null, "");
extractor.execute(new ByteArrayInputStream(text.getBytes()), workData);
List<Vertex> termMentions = toList(termMentionRepository.findBySourceGraphVertex(vertex.getId(), authorizations));
assertEquals(3, termMentions.size());
boolean found = false;
for (Vertex term : termMentions) {