public void testRefWithSourceInterceptorHandler() throws Exception {
MockSyncInterceptor mockInterceptor = new MockSyncInterceptor();
MockInterceptorBuilder interceptorBuilder = new MockInterceptorBuilder(mockInterceptor, true);
MockHandler mockHandler = new MockHandler();
MockHandlerBuilder handlerBuilder = new MockHandlerBuilder(mockHandler, true, true);
PolicyBuilderRegistry policyRegistry = new DefaultPolicyBuilderRegistry();
policyRegistry.registerSourceBuilder(interceptorBuilder);
policyRegistry.registerSourceBuilder(handlerBuilder);
WireFactoryService wireFactory = new DefaultWireFactoryService(new MessageFactoryImpl(), new JDKWireFactoryFactory(), policyRegistry);
JavaContextFactoryBuilder javaBuilder = new JavaContextFactoryBuilder(wireFactory);
builderRegistry.register(javaBuilder);
RuntimeContext runtime = new RuntimeContextImpl(monitorFactory, builderRegistry, defaultWireBuilder);