### Question:
SlingBeanFactoryPostProcessor implements OsgiBeanFactoryPostProcessor { @Override public void postProcessBeanFactory(BundleContext bundleContext, ConfigurableListableBeanFactory factory) { this.requestScopeConfigurator.registerRequestScope(factory); this.springModelRegistrar.registerModels(bundleContext, factory); this.dispatcherServlet.enableMvc(factory, bundleContext); }  @Override void postProcessBeanFactory(BundleContext bundleContext, ConfigurableListableBeanFactory factory);  }### Answer:
@Test public void testOrderOfRegistrarInvocations() { postProcessBeanFactory(); InOrder inOrder = inOrder( this.requestScopeConfigurator, this.modelRegistrar, this.dispatcherServlet); inOrder.verify(this.requestScopeConfigurator).registerRequestScope(eq(this.beanFactory)); inOrder.verify(this.modelRegistrar).registerModels(eq(this.context), eq(this.beanFactory)); inOrder.verify(this.dispatcherServlet).enableMvc(eq(this.beanFactory), eq(this.context)); }