@Test
public void exerciseUserRecordShouldBeConverted() 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.EXERCISE,
              UserEventRecord.ExerciseIntensity.LIGHT.getId(), 10)),
          new ManufacturingParameters(SERIAL_NUMBER, "partNumber", HARDWARE_REVISION, "2013-10-18 10:10", HARDWARE_ID),
              TEST_TIME));
  ExerciseSession expectedExerciseSession = new ExerciseSession(internalTimeFromSeconds(1000L),
      localDateTimeFromSeconds(2000L), localDateTimeFromSeconds(1500L), ExerciseSession.Intensity.LIGHT,
      Duration.ofMinutes(10), ExerciseSession.EMPTY_DESCRIPTION);
  SyncData expectedSyncData = new SyncData(EMPTY_GLUCOSE_READS, EMPTY_INSULIN_INJECTIONS, EMPTY_FOOD_EVENTS,
      Arrays.asList(expectedExerciseSession), new DeviceInfo(SERIAL_NUMBER, HARDWARE_ID, HARDWARE_REVISION),
          TEST_TIME);
  assertThat(syncData, is(equalTo(expectedSyncData)));
}