@Test
public void testGetPeriodsWeekly() {

  for (int i = 0; i < repetitions; i++) {
    final Instant a = randomInstant();
    final Instant b = randomInstant();
    final Instant from = Ordering.natural().min(a, b);
    final Instant to = Ordering.natural().max(a, b);
    logger.info("from {} to {} {}", from, to, DataResolution.WEEKLY.name());
    final List<Tuple<Instant, Instant>> periods = InfluxStatisticsProvider.getPeriods(from, to, DataResolution.WEEKLY,
        ZoneId.of("Z"));
    assertEquals(1, periods.size());
    assertEquals(from, periods.get(0).getA());
    assertEquals(to, periods.get(0).getB());
  }
}