### Question:
BinlogHelper { static SocketAddress getPeerSocket(Attributes streamAttributes) { return streamAttributes.get(Grpc.TRANSPORT_ATTR_REMOTE_ADDR); } @VisibleForTesting  BinlogHelper(SinkWriter writer); ClientInterceptor getClientInterceptor(final long callId); ServerInterceptor getServerInterceptor(final long callId);  }### Answer:
@Test public void getPeerSocketTest() { assertNull(getPeerSocket(Attributes.EMPTY)); assertSame( peer, getPeerSocket(Attributes.newBuilder().set(Grpc.TRANSPORT_ATTR_REMOTE_ADDR, peer).build())); }