public void testRefWithTargetInterceptorHandler() throws Exception {
MockSyncInterceptor mockInterceptor = new MockSyncInterceptor();
MockInterceptorBuilder interceptorBuilder = new MockInterceptorBuilder(mockInterceptor, false);
MockHandler mockHandler = new MockHandler();
MockHandlerBuilder handlerBuilder = new MockHandlerBuilder(mockHandler, false, 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);