}
}
@Test
public void mergeNode() throws Exception {
new SchemaIndexProvider(graphDatabase).createIndex("user","name",true);
try (Transaction tx = graphDatabase.beginTx()) {
final Node node = graphDatabase.merge("user", "name", "David", map("name", "David"), null);
final Node node2 = graphDatabase.merge("user", "name", "David", map("name", "David"), null);
assertEquals("David",node.getProperty("name"));
assertEquals(node,node2);