PortConfigurationHelper { public static boolean isValidPort(final int port) { return port >= MIN_PORT_NO && port <= MAX_PORT_NO; } private  PortConfigurationHelper(); static boolean isValidPort(final int port);  }
@Test public void testIsValidPort() { assertTrue(PortConfigurationHelper.isValidPort(0)); assertTrue(PortConfigurationHelper.isValidPort(65535)); assertFalse(PortConfigurationHelper.isValidPort(-1)); assertFalse(PortConfigurationHelper.isValidPort(65536)); }