manager.registerCallback(new ObjectFactory<LifecycleCallback>() {
public LifecycleCallback create() {
return callback;
}
});
manager.process();
Mockito.verify(callback).onBeforeModelCreated();
Mockito.verify(callback).onAfterModelCreated();
Mockito.verify(callback, Mockito.atLeastOnce()).onBeforePreProcess();
Mockito.verify(callback, Mockito.atLeastOnce()).onAfterPreProcess();