protected void setUp() throws Exception {
runtime = new ServerRuntime("cayenne-lifecycle.xml");
// a filter is required to invalidate root objects after commit
UuidRelationshipFilter filter = new UuidRelationshipFilter();
runtime.getDataDomain().addFilter(filter);
runtime.getDataDomain().getEntityResolver().getCallbackRegistry().addListener(
filter);
}