@Test
public void testStatsActionWithoutNesting() throws FoxtrotException {

    StatsRequest request = new StatsRequest();
    request.setTable(TestUtils.TEST_TABLE_NAME);
    request.setField("battery");
    StatsResponse statsResponse = StatsResponse.class.cast(getQueryExecutor().execute(request));
    assertNotNull(statsResponse);
    assertNotNull(statsResponse.getResult());
    assertEquals(150, statsResponse.getResult()
            .getStats()
            .get("sum")
            .intValue());
    assertEquals(5, statsResponse.getResult()
            .getStats()
            .get("count")
            .intValue());
    assertNull(statsResponse.getBuckets());
    assertNotNull(statsResponse.getResult().getPercentiles());
}