PolicyInterceptorProviderRegistry reg = control.createMock(PolicyInterceptorProviderRegistry.class);
setupPolicyInterceptorProviderRegistry(engine, reg);
PolicyInterceptorProvider app = control.createMock(PolicyInterceptorProvider.class);
EasyMock.expect(reg.get(aqn)).andReturn(app).anyTimes();
Interceptor api = control.createMock(Interceptor.class);
EasyMock.expect(app.getInInterceptors())
.andReturn(Collections.singletonList(api)).anyTimes();
if (requestor) {
EasyMock.expect(app.getInFaultInterceptors())
.andReturn(Collections.singletonList(api)).anyTimes();