### Question:
NetUtils { public static Endpoint createEndpoint(String hostname, int port) { return Endpoint.newBuilder() .setHostname(hostname) .setPort(port) .build(); }  static InetSocketAddress of(Endpoint endpoint); static String getLocalHostName(boolean useHostname); static Endpoint getLocalEndpoint(int port, boolean useHostname); static List<Endpoint> parseEndpoints(String endpointStr); static Endpoint parseEndpoint(String endpointStr); static Endpoint createEndpoint(String hostname, int port); static String endpointToString(Endpoint ep);  }### Answer:
@Test public void testCreateEndpoint() { String hostname = "10.138.10.56"; int port = 12345; Endpoint endpoint = createEndpoint(hostname, port); assertEquals(hostname, endpoint.getHostname()); assertEquals(port, endpoint.getPort()); }