@Test
public void insulinUserRecordShouldBeConverted() throws Exception {

  DexcomAdapterService dexcomAdapterService = new DexcomAdapterService();
  SyncData syncData = dexcomAdapterService.convertData(
      new DexcomSyncData(EMPTY_GLUCOSE_READ_RECORDS,
          Arrays.asList(new UserEventRecord(1000L, 2000L, 1500L, UserEventRecord.UserEventType.INSULIN, (byte) 0, 350)),
          new ManufacturingParameters(SERIAL_NUMBER, "partNumber", HARDWARE_REVISION, "2013-10-18 10:10", HARDWARE_ID),
              TEST_TIME));
  InsulinInjection expectedInsulinInjection = new InsulinInjection(internalTimeFromSeconds(1000L),
      localDateTimeFromSeconds(2000L), localDateTimeFromSeconds(1500L), 3.5f, UNKNOWN, UNAVAILABLE_INSULIN_NAME);
  SyncData expectedSyncData = new SyncData(EMPTY_GLUCOSE_READS, Arrays.asList(expectedInsulinInjection), EMPTY_FOOD_EVENTS,
      EMPTY_EXERCISE_SESSIONS, new DeviceInfo(SERIAL_NUMBER, HARDWARE_ID, HARDWARE_REVISION), TEST_TIME);
  assertThat(syncData, is(equalTo(expectedSyncData)));
}