### Question:
Overlay { public void setPort(final int port) { Range<Integer> range = Range.between(0, 65535); if (!range.contains(port)) { throw new IllegalArgumentException("Port(" + port + ") must in [0, 65535]"); } this.port = port; }  void setPort(final int port);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void whenSetOutOfBoundsPort() { overlay.setPort(-1); }