@Test
public void multipleReadsShouldAllBeConverted() throws Exception {

  DexcomAdapterService dexcomAdapterService = new DexcomAdapterService();
  List<GlucoseReadRecord> glucoseRecords = Arrays.asList(new GlucoseReadRecord(1000, 1000, NORMAL_READ_TEST_VALUE, (byte) 0, 1L, 1L),
      new GlucoseReadRecord(2000, 2000, NORMAL_READ_TEST_VALUE, (byte) 0, 1L, 1L));
  SyncData syncData = dexcomAdapterService.convertData(new DexcomSyncData(glucoseRecords, EMPTY_USER_EVENT_RECORDS,
      new ManufacturingParameters(SERIAL_NUMBER, "partNumber", HARDWARE_REVISION, "2013-10-18 10:10", HARDWARE_ID),
          TEST_TIME));
  GlucoseRead expectedRead1 = new GlucoseRead(
      internalTimeFromSeconds(1000L),
      localDateTimeFromSeconds(1000L),
      NORMAL_READ_TEST_VALUE.floatValue(),
      GlucoseRead.Unit.MG_PER_DL);
  GlucoseRead expectedRead2 = new GlucoseRead(
      internalTimeFromSeconds(2000L),
      localDateTimeFromSeconds(2000L),
      NORMAL_READ_TEST_VALUE.floatValue(),
      GlucoseRead.Unit.MG_PER_DL);
  SyncData expectedSyncData = new SyncData(Arrays.asList(expectedRead1, expectedRead2), EMPTY_INSULIN_INJECTIONS,
      EMPTY_FOOD_EVENTS, EMPTY_EXERCISE_SESSIONS, new DeviceInfo(SERIAL_NUMBER, HARDWARE_ID, HARDWARE_REVISION),
          TEST_TIME);
  assertThat(syncData, is(equalTo(expectedSyncData)));
}