public void shouldConvertOGMExceptionsToPersistenceExceptions() {
this.template.loadAll(Void.class);
}
@Test(expected = PersistenceException.class)
public void shouldHandleErrorsOnExecute() {
<BUG>this.template.execute("CREAT (node:NODE)");
}</BUG>
@Test
public void shouldReturnQueryStats() {
<BUG>QueryStatistics stats = this.template.execute("CREATE (a:Actor {name:'Keanu Reeves'}) CREATE (m:Movie {title:'The Matrix'}) " +

"CREATE (a)-[:ACTED_IN {role:'Neo'}]->(m)");
assertTrue(stats.containsUpdates());</BUG>
assertEquals(2, stats.getNodesCreated());

public void shouldConvertOGMExceptionsToPersistenceExceptions() {
this.template.loadAll(Void.class);
}
@Test(expected = PersistenceException.class)
public void shouldHandleErrorsOnExecute() {
this.template.query("CREAT (node:NODE)", Collections.EMPTY_MAP);
}
@Test
public void shouldReturnQueryStats() {
QueryStatistics stats = this.template.query("CREATE (a:Actor {name:'Keanu Reeves'}) CREATE (m:Movie {title:'The Matrix'}) " +
"CREATE (a)-[:ACTED_IN {role:'Neo'}]->(m)", Collections.EMPTY_MAP).queryStatistics();
assertTrue(stats.containsUpdates());
assertEquals(2, stats.getNodesCreated());
