adapterManager = new AdapterManagerDefault();
adapterFactory = new PojoAdapterFactory();
objectFactory = new ObjectFactoryBasic();
oidGenerator = new TestProxyOidGenerator();
final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
final DomainObjectContainerDefault container = new DomainObjectContainerDefault();
runtimeContext.injectInto(container);
runtimeContext.setContainer(container);
final ServicesInjectorDefault servicesInjector = new ServicesInjectorDefault();
servicesInjector.setContainer(container);
persistenceSessionProxy = new PersistenceSessionProxy(mockPersistenceSessionFactory, adapterFactory, objectFactory, servicesInjector, oidGenerator, adapterManager, mockDistribution, mockEncoder);