### Question:
ReadPacket { public Command getCommand() { return command; } ReadPacket(byte[] readPacket); Command getCommand(); byte[] getData();  }### Answer:
@Test public void testReadPacket_command() { assertThat(new ReadPacket(testPacket).getCommand().getValue(), is((byte) 0x05)); }
@Test public void testReadPacket_noDataPacket_command() { assertThat(new ReadPacket(testPacketNoData).getCommand().getValue(), is((byte) 0x1A)); }