@Test
public void testStatsActionOnlyCountStat() throws FoxtrotException {

    StatsRequest request = new StatsRequest();
    request.setTable(TestUtils.TEST_TABLE_NAME);
    request.setField("battery");
    request.setStats(Collections.singleton(Stat.COUNT));
    StatsResponse statsResponse = StatsResponse.class.cast(getQueryExecutor().execute(request));
    assertNotNull(statsResponse);
    assertNotNull(statsResponse.getResult());
    assertEquals(1, statsResponse.getResult()
            .getStats()
            .size());
    assertTrue(statsResponse.getResult()
                       .getStats()
                       .containsKey("count"));
}