BindingFaultInfo bfi = control.createMock(BindingFaultInfo.class);
EasyMock.expect(interceptor.getBindingFaultInfo(message, ex, boi)).andReturn(bfi);
EffectivePolicy effectivePolicy = control.createMock(EffectivePolicyImpl.class);
EasyMock.expect(pe.getEffectiveServerFaultPolicy(ei, bfi, destination))
.andReturn(effectivePolicy);
Interceptor i = control.createMock(Interceptor.class);
EasyMock.expect(effectivePolicy.getInterceptors())
.andReturn(CastUtils.cast(Collections.singletonList(i), Interceptor.class));
InterceptorChain ic = control.createMock(InterceptorChain.class);
EasyMock.expect(message.getInterceptorChain()).andReturn(ic);
ic.add(i);