### Question:
RXSMSPacket extends XBeeAPIPacket { public String getData() { return this.data; } RXSMSPacket(String phoneNumber, String data); static RXSMSPacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); @Override boolean isBroadcast(); void setPhoneNumber(String phoneNumber); byte[] getPhoneNumberByteArray(); String getPhoneNumber(); void setData(String data); String getData(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testGetDataNullData() { data = null; RXSMSPacket packet = new RXSMSPacket(phoneNumber, data); String result = packet.getData(); assertThat("Data must be the same", result, is(equalTo(data))); assertThat("Data must be null", result, is(nullValue(String.class))); }
@Test public final void testGetDataValidData() { RXSMSPacket packet = new RXSMSPacket(phoneNumber, data); String result = packet.getData(); assertThat("Data must be the same", result, is(equalTo(data))); }