public void testNodeIndex() throws SyntaxException, Exception {
Map<String, String> config = SpatialIndexProvider.SIMPLE_POINT_CONFIG;
IndexManager indexMan = db.index();
Index<Node> index;
Transaction tx = db.beginTx();
index = indexMan.forNodes("layer1", config);
assertNotNull(index);
ExecutionEngine engine = new ExecutionEngine(db);
ExecutionResult result1 = engine.execute("create (malmo{name:'Malmö',lat:56.2, lon:15.3})-[:TRAIN]->(stockholm{name:'Stockholm',lat:59.3,lon:18.0}) return malmo");
Node malmo = (Node) result1.iterator().next().get("malmo");
index.add(malmo, "dummy", "value");