}
@Test
public void testNoRelatesToHeader() throws Exception {
new LoggingFeature().initialize(this.getBus());
AddNumberImpl port = getPort();
Client c = ClientProxy.getClient(port);
c.getInInterceptors().add(new RemoveRelatesToHeaderInterceptor());
long start = System.currentTimeMillis();
port.addNumbers(1, 2);
try {
port.addNumbers3(-1, -1);
} catch (Exception ex) {
//ignore, expected
}
long end = System.currentTimeMillis();
assertTrue((end - start) < 50000);