BinaryCodec implements Codec<Binary> { @Override public String toString() { StringBuilder buffer = new StringBuilder(); buffer .append("BinaryCodec{") .append("ObjectFactory=" + objectFactory.getClass().getName()) .append('}'); return buffer.toString(); } BinaryCodec(); private  BinaryCodec(Builder builder); @Override void inject(JaegerSpanContext spanContext, Binary carrier); @Override JaegerSpanContext extract(Binary carrier); @Override String toString(); static Builder builder();  }
@Test public void testWithoutBuilder() { BinaryCodec codec = new BinaryCodec(); String str = codec.toString(); assertTrue(str.contains("BinaryCodec")); }