// adapter factories
modelAdapterFactory = new MockModelAdapterFactory(componentContext());
registerService(AdapterFactory.class, modelAdapterFactory);
// sling models injectors
registerService(Injector.class, new BindingsInjector());
registerService(Injector.class, new ChildResourceInjector());
OSGiServiceInjector osgiServiceInjector = new OSGiServiceInjector();
osgiServiceInjector.activate(componentContext());
registerService(Injector.class, osgiServiceInjector);
registerService(Injector.class, new RequestAttributeInjector());