servicesInjector = new ServicesInjectorDefault();
servicesInjector.setContainer(container);
adapterManager = new AdapterManagerDefault(new PojoRecreatorDefault());
adapterFactory = new PojoAdapterFactory();
persistenceSession = new PersistenceSession(mockPersistenceSessionFactory, adapterFactory, objectFactory, servicesInjector, new OidGenerator(new IdentifierGeneratorDefault()), adapterManager, mockPersistAlgorithm, mockObjectStore) {
@Override
protected SpecificationLoaderSpi getSpecificationLoader() {
return isisMetaModel.getSpecificationLoader();
}