### Question:
NetUtils { public static boolean isValidPort(int port) { return port >= MIN_PORT && port <= MAX_PORT; } private  NetUtils(); static boolean isValidPort(int port); static final int MIN_PORT; static final int MAX_PORT; }### Answer:
@Test public void testIsValidPort() { assertFalse(NetUtils.isValidPort(-4714)); assertFalse(NetUtils.isValidPort(-1)); assertFalse(NetUtils.isValidPort(0)); assertTrue(NetUtils.isValidPort(1)); assertTrue(NetUtils.isValidPort(4714)); assertTrue(NetUtils.isValidPort(65534)); assertTrue(NetUtils.isValidPort(65535)); assertFalse(NetUtils.isValidPort(65536)); }