OpenRtbValidationInterceptor implements BidInterceptor { @Override public void execute(final InterceptorChain<BidRequest, BidResponse> chain) { chain.proceed(); validator.validate(chain.request().openRtb(), chain.response().openRtb()); } @Inject  OpenRtbValidationInterceptor(OpenRtbValidator validator); @Override void execute(final InterceptorChain<BidRequest, BidResponse> chain);  }
@Test public void testBannerNoAttrs() { BidResponse response = TestBidResponseBuilder.create().build().addBid(basicBid()); NoopInterceptorChain.execute(interceptor, request, response, metricRegistry); assertFalse(Iterables.isEmpty(response.bids())); }