@Test
public void timestampFiltersAreAdapted() {

  // Timestamps are sorted by the filter min -> max
  TimestampsFilter filter = new TimestampsFilter(ImmutableList.of(1L, 10L, 20L));
  Filters.Filter expected = filterAdapter.adapt(emptyScanContext, filter);
  Interleave expectedInterleaveFilter = expected.toProto().getInterleave();
  Assert.assertEquals(3, expectedInterleaveFilter.getFiltersCount());
  Assert.assertEquals(
      10000L,
      expectedInterleaveFilter.getFilters(1).getTimestampRangeFilter().getStartTimestampMicros());
  Assert.assertEquals(
      11000L,
      expectedInterleaveFilter.getFilters(1).getTimestampRangeFilter().getEndTimestampMicros());
}