OkHttpClientTransport implements ManagedClientTransport { @Override public String toString() { return getLogId() + "(" + address + ")"; } OkHttpClientTransport(InetSocketAddress address, String authority, Executor executor,
      @Nullable SSLSocketFactory sslSocketFactory, ConnectionSpec connectionSpec,
      int maxMessageSize); @VisibleForTesting  OkHttpClientTransport(Executor executor, FrameReader frameReader, FrameWriter testFrameWriter,
      int nextStreamId, Socket socket, Ticker ticker,
      @Nullable Runnable connectingCallback, SettableFuture<Void> connectedFuture,
      int maxMessageSize); @Override void ping(final PingCallback callback, Executor executor); @Override OkHttpClientStream newStream(final MethodDescriptor<?, ?> method, final Metadata headers); @Override void start(Listener listener); @Override String toString(); @Override String getLogId(); @Override void shutdown();  }
@Test public void testToString() throws Exception { InetSocketAddress address = InetSocketAddress.createUnresolved("hostname", 31415); clientTransport = new OkHttpClientTransport( address, "hostname", executor, null, Utils.convertSpec(OkHttpChannelBuilder.DEFAULT_CONNECTION_SPEC), DEFAULT_MAX_MESSAGE_SIZE); String s = clientTransport.toString(); assertTrue("Unexpected: " + s, s.contains("OkHttpClientTransport")); assertTrue("Unexpected: " + s, s.contains(address.toString())); }