assertEquals("Horror", loadedGenre.getName());
}
@Test
public void shouldExecuteArbitraryUpdateQuery() {
assertTrue("There shouldn't be any genres in the database", this.template.loadAll(Genre.class).isEmpty());
<BUG>this.template.execute("CREATE (:Genre {name:'Comedy'}), (:Genre {name:'Action'})");
</BUG>
Iterator<Genre> genres = this.template.loadAll(Genre.class, 0).iterator();
assertEquals("There weren't any genres created", 2, Utils.size(genres));
}

assertEquals("Horror", loadedGenre.getName());
}
@Test
public void shouldExecuteArbitraryUpdateQuery() {
assertTrue("There shouldn't be any genres in the database", this.template.loadAll(Genre.class).isEmpty());
this.template.query("CREATE (:Genre {name:'Comedy'}), (:Genre {name:'Action'})", Collections.EMPTY_MAP);
Iterator<Genre> genres = this.template.loadAll(Genre.class, 0).iterator();
assertEquals("There weren't any genres created", 2, Utils.size(genres));
}
