TextMapCodec implements Codec<TextMap> { @Override public String toString() { StringBuilder buffer = new StringBuilder(); buffer .append("TextMapCodec{") .append("contextKey=") .append(contextKey) .append(',') .append("baggagePrefix=") .append(baggagePrefix) .append(',') .append("urlEncoding=") .append(urlEncoding) .append('}'); return buffer.toString(); } TextMapCodec(boolean urlEncoding); private  TextMapCodec(Builder builder); static String contextAsString(JaegerSpanContext context); @Override void inject(JaegerSpanContext spanContext, TextMap carrier); @Override JaegerSpanContext extract(TextMap carrier); @Override String toString(); static Builder builder();  }
@Test public void testWithoutBuilder() { TextMapCodec codec = new TextMapCodec(false); String str = codec.toString(); assertTrue(str.contains("contextKey=uber-trace-id")); assertTrue(str.contains("baggagePrefix=uberctx-")); assertTrue(str.contains("urlEncoding=false")); }