@Test
public void testActivityDestroyedDisplayString() {

  buildActivityEvent(ACTIVITY_NAME,
                     new ActivityStateData[]{
                       new ActivityStateData(Interaction.ViewData.State.CREATED, TEST_START_TIME_NS),
                       new ActivityStateData(Interaction.ViewData.State.DESTROYED, TEST_START_TIME_NS),
                     },
                     0);
  Range range = new Range(TimeUnit.NANOSECONDS.toMicros(TEST_START_TIME_NS), TimeUnit.NANOSECONDS.toMicros(TEST_END_TIME_NS));
  List<SeriesData<EventAction<LifecycleEvent>>> dataList = myActivitySeries.getDataForRange(range);
  assertThat(dataList).hasSize(1);
  SeriesData<EventAction<LifecycleEvent>> event = dataList.get(0);
  assertThat(event.value.getType()).isEqualTo(LifecycleEvent.COMPLETED);
  assertThat(((LifecycleAction)event.value).getName()).isEqualTo(
    String.format("%s - %s", ACTIVITY_NAME, Interaction.ViewData.State.DESTROYED.toString().toLowerCase()));
}