### Question:
TXStatusPacket extends XBeeAPIPacket { @Override public LinkedHashMap<String, String> getAPIPacketParameters() { LinkedHashMap<String, String> parameters = new LinkedHashMap<String, String>(); parameters.put("Status", HexUtils.prettyHexString(HexUtils.integerToHexString(transmitStatus.getId(), 1)) + " (" + transmitStatus.getDescription() + ")"); return parameters; } TXStatusPacket(int frameID, XBeeTransmitStatus transmitStatus); static TXStatusPacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); XBeeTransmitStatus getTransmitStatus(); @Override boolean isBroadcast(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testGetAPIPacketParameters() { int frameID = 0x65; XBeeTransmitStatus transmitStatus = XBeeTransmitStatus.SUCCESS; TXStatusPacket packet = new TXStatusPacket(frameID, transmitStatus); String expectedTransmitStatus = HexUtils.prettyHexString(Integer.toHexString(transmitStatus.getId())) + " (" + transmitStatus.getDescription() + ")"; LinkedHashMap<String, String> packetParams = packet.getAPIPacketParameters(); assertThat("Packet parameters map size is not the expected one", packetParams.size(), is(equalTo(1))); assertThat("Delivery status is not the expected", packetParams.get("Status"), is(equalTo(expectedTransmitStatus))); }