}
});
replay(rootService, realCreatedService);
InterceptorStack stack = new InterceptorStackImpl(log, servicePoint, rootService);
// create the interceptor
factory.createInterceptor(stack, invokingModule, parameters);
ServiceImplementationFactory intercepted = (ServiceImplementationFactory) stack.peek();
assertNotNull(intercepted);
SomeService result = (SomeService) intercepted.createCoreServiceImplementation(factoryParameters);
MockSwitcher switcher = (MockSwitcher) Proxy.getInvocationHandler(result);