HealthCheckTarget { public void setPingPort(Integer pingPort) { validatePingPort(pingPort); this.pingPort = pingPort; }  String getTarget(); String getPingPath(); void setPingPath(String pingPath); PingProtocol getPingProtocol(); void setPingProtocol(PingProtocol pingProtocol); Integer getPingPort(); void setPingPort(Integer pingPort); @Override String toString();  }
@Test(expected = IllegalArgumentException.class) public void testGetTarget_WithPingPortOutOfRange() { objectUnderTest.setPingPort(65535 + 1); }