@Test
public void testEntityExtraction() throws Exception {
JSONObject visibilityJson = new JSONObject();
visibilityJson.put("source", "");
Vertex vertex = graph.prepareVertex("v1", new Visibility(""))
.setProperty("text", "none", new Visibility(""))
.setProperty(LumifyProperties.VISIBILITY_JSON.getPropertyName(), visibilityJson, new Visibility(""))
.save(new InMemoryAuthorizations());
GraphPropertyWorkData workData = new GraphPropertyWorkData(vertex, vertex.getProperty("text"), null, null);
extractor.setVisibilityTranslator(visibilityTranslator);
extractor.execute(new ByteArrayInputStream(text.getBytes("UTF-8")), workData);