@Test
public void testStatsTrendActionWithoutNestingSkipPercentile() throws FoxtrotException, JsonProcessingException {

    StatsTrendRequest request = new StatsTrendRequest();
    request.setTable(TestUtils.TEST_TABLE_NAME);
    request.setTimestamp("_timestamp");
    request.setField("battery");
    request.setFlags(Collections.singleton(AnalyticsRequestFlags.STATS_SKIP_PERCENTILES));
    BetweenFilter betweenFilter = new BetweenFilter();
    betweenFilter.setFrom(1L);
    betweenFilter.setTo(System.currentTimeMillis());
    betweenFilter.setTemporal(true);
    betweenFilter.setField("_timestamp");
    request.setFilters(Collections.singletonList(betweenFilter));
    StatsTrendResponse statsTrendResponse = StatsTrendResponse.class.cast(getQueryExecutor().execute(request));
    filterNonZeroCounts(statsTrendResponse);
    assertNotNull(statsTrendResponse);
    assertNotNull(statsTrendResponse.getResult());
    assertEquals(5, statsTrendResponse.getResult()
            .size());
    assertEquals(8, statsTrendResponse.getResult()
            .get(0)
            .getStats()
            .size());
    assertNull(statsTrendResponse.getResult()
            .get(0)
            .getPercentiles());
    assertNull(statsTrendResponse.getBuckets());
}