@Test
public void specialValuesShouldNotBeIncluded() throws Exception {

  DexcomAdapterService dexcomAdapterService = new DexcomAdapterService();
  // Test all special values
  for (int specialGlucoseValue : SPECIAL_GLUCOSE_VALUES) {
    List<GlucoseReadRecord> glucoseRecords = Arrays.asList(new GlucoseReadRecord(1000, 1000, specialGlucoseValue,
        (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));
    SyncData expectedSyncData = new SyncData(EMPTY_GLUCOSE_READS, EMPTY_INSULIN_INJECTIONS, EMPTY_FOOD_EVENTS,
        EMPTY_EXERCISE_SESSIONS, new DeviceInfo(SERIAL_NUMBER, HARDWARE_ID, HARDWARE_REVISION), TEST_TIME);
    assertThat(format("Glucose value [%d] should not be included in the conversion result", specialGlucoseValue),
        syncData, is(equalTo(expectedSyncData)));
  }
}