@Test
public void testStartAfterEnd() {

  // Test start after end
  final Instant wrongFrom = Instant.parse("2019-04-01T00:00:00.000Z");
  final Instant wrongTo = Instant.parse("2019-03-30T17:00:00.000Z");
  Arrays.stream(DataResolution.values()).forEach(dr -> {
    assertTrue(StatisticsUtil.getBuckets(wrongFrom, wrongTo, dr, ZoneId.of("Z")).isEmpty());
  });
}