### Question:
SendDataResponsePacket extends XBeeAPIPacket { public void setStatus(DeviceCloudStatus status) { if (status == null) throw new NullPointerException(ERROR_STATUS_NULL); this.status = status; } SendDataResponsePacket(int frameID, DeviceCloudStatus status); static SendDataResponsePacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); void setStatus(DeviceCloudStatus status); DeviceCloudStatus getStatus(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testSetStatusNull() { SendDataResponsePacket packet = new SendDataResponsePacket(frameID, status); status = null; exception.expect(NullPointerException.class); exception.expectMessage(is(equalTo("Status cannot be null."))); packet.setStatus(status); }