SOAPMessageInjectAdapter implements TextMap { @Override public Iterator<Map.Entry<String, String>> iterator() { throw new UnsupportedOperationException("SOAPMessageInjectAdapter should only be used with Tracer.inject()"); } SOAPMessageInjectAdapter(SOAPMessageContext context); @Override Iterator<Map.Entry<String, String>> iterator(); @Override void put(String key, String value);  }
@Test public void iterator() throws Exception { assertThatThrownBy(() -> soapMessageInjectAdapter.iterator()).isInstanceOf(UnsupportedOperationException.class); }