database.registerTransactionEventHandler(new TransactionEventHandler.Adapter<Void>() {
@Override
public Void beforeCommit(TransactionData data) throws Exception {
ImprovedTransactionData improvedTransactionData = new FilteredTransactionData(new LazyTransactionData(data), InclusionPolicies.none());
assertFalse(improvedTransactionData.mutationsOccurred());
assertTrue(improvedTransactionData.hasBeenChanged(database.getNodeById(1)));
assertTrue(improvedTransactionData.changedProperties(database.getNodeById(1)).isEmpty());
return null;
}
});