Transaction tx = gdb.beginTx();
final Node node = index.get("id", info.getId()).getSingle();
assertNotNull(node);
assertEquals(info.getId(), node.getProperty("id"));
assertEquals(info.getVersion(),node.getProperty("version"));
tx.success();tx.close();
}
@Test
public void testCreateWithNoRoot() throws Exception {
final GraphInfo info = storage.create(new GraphInfo(Util.randomId(), "init", "query", "message","version",true));