### Question:
ChannelzProtoUtil { static GetServerSocketsResponse toGetServerSocketsResponse(ServerSocketsList serverSockets) { GetServerSocketsResponse.Builder responseBuilder = GetServerSocketsResponse .newBuilder() .setEnd(serverSockets.end); for (InternalWithLogId s : serverSockets.sockets) { responseBuilder.addSocketRef(ChannelzProtoUtil.toSocketRef(s)); } return responseBuilder.build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }### Answer:
@Test public void toGetServerSocketsResponse() { assertEquals( GetServerSocketsResponse.getDefaultInstance(), ChannelzProtoUtil.toGetServerSocketsResponse( new ServerSocketsList(Collections.<InternalWithLogId>emptyList(), false))); assertEquals( GetServerSocketsResponse .newBuilder() .addSocketRef(socketRef) .build(), ChannelzProtoUtil.toGetServerSocketsResponse( new ServerSocketsList(ImmutableList.<InternalWithLogId>of(socket), false))); assertEquals( GetServerSocketsResponse .newBuilder() .addSocketRef(socketRef) .setEnd(true) .build(), ChannelzProtoUtil.toGetServerSocketsResponse( new ServerSocketsList(ImmutableList.<InternalWithLogId>of(socket), true))); TestSocket socket2 = new TestSocket(); assertEquals( GetServerSocketsResponse .newBuilder() .addSocketRef(socketRef) .addSocketRef(ChannelzProtoUtil.toSocketRef(socket2)) .setEnd(true) .build(), ChannelzProtoUtil.toGetServerSocketsResponse( new ServerSocketsList(ImmutableList.<InternalWithLogId>of(socket, socket2), true))); }