public void test05SpatialRollback() {
try {
final Class type = TestSeven.class;
final PropertyMap props = new PropertyMap();
final PropertyKey lat = TestSeven.latitude;
final PropertyKey lon = TestSeven.longitude;
props.put(AbstractNode.type, type.getSimpleName());
props.put(lat, 50.12284d);
props.put(lon, 8.73923d);
props.put(AbstractNode.name, "TestSeven-0");;
try (final Tx tx = app.tx()) {
// this will work
TestSeven node = app.create(TestSeven.class, props);
props.remove(AbstractNode.name);
props.put(lat, 50.12285d);
props.put(lon, 8.73924d);
// this will fail
TestSeven node2 = app.create(TestSeven.class, props);
// adding another