@Test
public void readPageRangeResponseShouldMatchExample() throws Exception {

  when(serialPort.readBytes(HEADER_SIZE)).thenReturn(fromHexString("01 0E 00 01"));
  when(serialPort.readBytes(14 - HEADER_SIZE - TRAILER_SIZE)).thenReturn(fromHexString("01 00 00 00 02 00 00 00"));
  when(serialPort.readBytes(TRAILER_SIZE)).thenReturn(fromHexString("97 11"));
  ResponseReader responseReader = new ResponseReader(new LittleEndianDataInputFactory());
  PageRangeResponse pageRangeResponse = responseReader.read(PageRangeResponse.class, this.serialPort);
  assertThat(pageRangeResponse, not(nullValue()));
  assertThat(pageRangeResponse.getFirstPage(), is(1L));
  assertThat(pageRangeResponse.getLastPage(), is(2L));
}