### Question:
AccessPoint { public void setChannel(int channel) { if (channel < 0) throw new IllegalArgumentException(ERROR_CHANNEL); this.channel = channel; } AccessPoint(String ssid, WiFiEncryptionType encryptionType);  AccessPoint(String ssid, WiFiEncryptionType encryptionType, int channel,
			int signalQuality); String getSSID(); WiFiEncryptionType getEncryptionType(); int getChannel(); void setChannel(int channel); int getSignalQuality(); void setSignalQuality(int signalQuality); @Override String toString();  }### Answer:
@Test(expected=IllegalArgumentException.class) public void testSetChannelNegative() { AccessPoint accessPoint = new AccessPoint(SSID, ENCRYPTION_TYPE); accessPoint.setChannel(-10); }