### Question:
Port { public static Port tcp(int port) { return new Port(port, TCP_PROTOCOL); } private  Port(int port, String protocol); static Port tcp(int port); static Port udp(int port); static Port parseProtocol(int port, String protocolString); int getPort(); String getProtocol(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testTcp() { Port port = Port.tcp(5555); Assert.assertEquals(5555, port.getPort()); Assert.assertEquals("5555/tcp", port.toString()); }