person = new Person("Simon", 28);
result = repository.save(person);
tx.success();
}
try (Transaction tx = database.beginTx()) {
assertThat(result, is(notNullValue()));
Long resultId = result.getId();
Person lookedUpPerson = repository.findOne(person.getId());
assertThat(lookedUpPerson.getId(), is(resultId));
tx.success();