@Test
public void testOnlyFragmentReceived() {

  buildActivityEvent(FRAGMENT_NAME,
                     new ActivityStateData[]{
                       new ActivityStateData(Interaction.ViewData.State.RESUMED,
                                             TEST_START_TIME_NS),
                       new ActivityStateData(Interaction.ViewData.State.PAUSED,
                                             TEST_END_TIME_NS),
                     },
                     1234
  );
  buildActivityEvent(ACTIVITY_NAME,
                     new ActivityStateData[]{
                       new ActivityStateData(Interaction.ViewData.State.RESUMED,
                                             TEST_START_TIME_NS),
                       new ActivityStateData(Interaction.ViewData.State.PAUSED,
                                             TEST_END_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 = myFragmentSeries.getDataForRange(range);
  assertThat(dataList).hasSize(1);
  SeriesData<EventAction<LifecycleEvent>> event = dataList.get(0);
  verifyActivity(event, TEST_END_TIME_NS);
  assertThat(event.value.getType()).isEqualTo(LifecycleEvent.COMPLETED);
  assertThat(((LifecycleAction)event.value).getName()).isEqualTo(FRAGMENT_NAME);
}