@Test
public void testTouchEvent() {

  buildTouchEvent(1);
  Range range = new Range(TimeUnit.NANOSECONDS.toMicros(TEST_START_TIME_NS), TimeUnit.NANOSECONDS.toMicros(TEST_END_TIME_NS));
  List<SeriesData<EventAction<UserEvent>>> dataList = mySeries.getDataForRange(range);
  assertEquals(dataList.size(), 1);
  for (SeriesData<EventAction<UserEvent>> event : dataList) {
    assertEquals(event.x, TimeUnit.NANOSECONDS.toMicros(TEST_START_TIME_NS));
    assertEquals(event.value.getStartUs(), TimeUnit.NANOSECONDS.toMicros(TEST_START_TIME_NS));
    assertEquals(event.value.getEndUs(), TimeUnit.NANOSECONDS.toMicros(TEST_END_TIME_NS));
    assertEquals(event.value.getType(), UserEvent.TOUCH);
  }
}