### Question:
RXIPv6Packet extends XBeeAPIPacket { public void setSourcePort(int sourcePort) { if (sourcePort < 0 || sourcePort > 65535) throw new IllegalArgumentException(ERROR_SOURCE_PORT_ILLEGAL); this.sourcePort = sourcePort; } RXIPv6Packet(Inet6Address destAddress, Inet6Address sourceAddress, int destPort,
			int sourcePort, IPProtocol protocol, byte[] data); static RXIPv6Packet createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); Inet6Address getDestAddress(); void setDestAddress(Inet6Address destAddress); Inet6Address getSourceAddress(); void setSourceAddress(Inet6Address sourceAddress); int getDestPort(); void setDestPort(int destPort); int getSourcePort(); void setSourcePort(int sourcePort); IPProtocol getProtocol(); void setProtocol(IPProtocol protocol); byte[] getData(); void setData(byte[] data); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testSetSourcePortNegative() { RXIPv6Packet packet = new RXIPv6Packet(destAddress, sourceAddress, destPort, sourcePort, protocol, data); exception.expect(IllegalArgumentException.class); exception.expectMessage(is(equalTo("Source port must be between 0 and 65535."))); packet.setSourcePort(-1); }
@Test public final void testSetSourcePortBigger() { RXIPv6Packet packet = new RXIPv6Packet(destAddress, sourceAddress, destPort, sourcePort, protocol, data); exception.expect(IllegalArgumentException.class); exception.expectMessage(is(equalTo("Source port must be between 0 and 65535."))); packet.setSourcePort(65536); }