### Question:
PortAvailability { public static boolean isPortValid(final int port) { return (port >= 0 && port <= 65535); }  static boolean isPortAvailableForTcp(final int port); static boolean isPortAvailableForUdp(final int port); static boolean isPortValid(final int port); static boolean isPortAvailable(final int port);  }### Answer:
@Test void isValidPort_shouldRejectBelowBounds() { assertThat(PortAvailability.isPortValid(-1)).isFalse(); }
@Test void isValidPort_shouldRejectAboveBounds() { assertThat(PortAvailability.isPortValid(65536)).isFalse(); }
@Test void isValidPort_shouldBeValidInsideBounds() { assertThat(PortAvailability.isPortValid(0)).isTrue(); assertThat(PortAvailability.isPortValid(1)).isTrue(); assertThat(PortAvailability.isPortValid(1025)).isTrue(); assertThat(PortAvailability.isPortValid(65535)).isTrue(); }