var srv = new Neo4jServer
srv.start_quiet
-var key = get_time
+# key used to loosely assume unicity and prevent conflicting db accesses
+var key = "NIT_TESTING_ID".environ.to_i
var andres = new NeoNode
andres.labels.add_all(["PERSON", "MALE"])
var client = new Neo4jClient("http://localhost:7474")
assert client.is_ok
+# Clear the previous objects, if any
+client.cypher(new CypherQuery.from_string("MATCH (n) WHERE n.key = {key} OPTIONAL MATCH n-[r]-() DELETE r, n"))
+
print "# Save batch\n"
var batch = new NeoBatch(client)
print res4["name"].to_s
print res4["age"].to_s
print res4["status"].to_s
-print res4["groups"].to_s
+print res4["groups"].to_json
print res4.labels.join(" ")
assert res4.in_edges.is_empty
assert not res4.out_edges.is_empty