### Question:
ModemStatusPacket extends XBeeAPIPacket { @Override public LinkedHashMap<String, String> getAPIPacketParameters() { LinkedHashMap<String, String> parameters = new LinkedHashMap<String, String>(); parameters.put("Status", HexUtils.prettyHexString(HexUtils.integerToHexString(modemStatusEvent.getId(), 1)) + " (" + modemStatusEvent.getDescription() + ")"); return parameters; } ModemStatusPacket(ModemStatusEvent modemStatusEvent); static ModemStatusPacket createPacket(byte[] payload); @Override byte[] getAPIPacketSpecificData(); @Override boolean needsAPIFrameID(); ModemStatusEvent getStatus(); @Override boolean isBroadcast(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testGetAPIPacketParameters() { ModemStatusEvent modemStatusEvent = ModemStatusEvent.STATUS_JOINED_NETWORK; ModemStatusPacket packet = new ModemStatusPacket(modemStatusEvent); String expectedModemStatus = HexUtils.integerToHexString(modemStatusEvent.getId(), 1) + " (" + modemStatusEvent.getDescription() + ")"; LinkedHashMap<String, String> packetParams = packet.getAPIPacketParameters(); assertThat("Packet parameters map size is not the expected one", packetParams.size(), is(equalTo(1))); assertThat("Modem Status is not the expected one", packetParams.get("Status"), is(equalTo(expectedModemStatus))); }