### Question:
ATCommandResponsePacket extends XBeeAPIPacket { public byte[] getCommandValue() { return commandValue; } ATCommandResponsePacket(int frameID, ATCommandStatus status, String command, byte[] commandValue); static ATCommandResponsePacket createPacket(byte[] payload); @Override boolean needsAPIFrameID(); ATCommandStatus getStatus(); String getCommand(); void setCommandValue(String commandValue); void setCommandValue(byte[] commandValue); byte[] getCommandValue(); String getCommandValueAsString(); @Override boolean isBroadcast(); @Override LinkedHashMap<String, String> getAPIPacketParameters();  }### Answer:
@Test public final void testGetCommandValue() { int frameID = 0x10; String command = "NI"; ATCommandStatus status = ATCommandStatus.UNKNOWN; String valueToSet = "newNIValue"; ATCommandResponsePacket packet = new ATCommandResponsePacket(frameID, status, command, valueToSet.getBytes()); byte[] value = packet.getCommandValue(); assertThat("Returned command value must be '" + valueToSet + "'", value, is(equalTo(valueToSet.getBytes()))); }
@Test public final void testGetCommandValueNullValue() { int frameID = 0x10; String command = "NI"; ATCommandStatus status = ATCommandStatus.UNKNOWN; ATCommandResponsePacket packet = new ATCommandResponsePacket(frameID, status, command, null); byte[] value = packet.getCommandValue(); assertThat("Returned command value must be 'null'", value, is(equalTo(null))); }