### Question:
ReadPacket { public byte[] getData() { return data; } ReadPacket(byte[] readPacket); Command getCommand(); byte[] getData();  }### Answer:
@Test public void testReadPacket_data() { assertThat(new ReadPacket(testPacket).getData(), is(new byte[]{0x10, 0x15})); }
@Test public void testReadPacket_noDataPacket_emptyData() { assertThat(new ReadPacket(testPacketNoData).getData(), is(new byte[]{})); }