@Test
public void testTrendActionNullField() throws QueryStoreException, JsonProcessingException {

    TrendRequest trendRequest = new TrendRequest();
    trendRequest.setTable(TestUtils.TEST_TABLE_NAME);
    BetweenFilter betweenFilter = new BetweenFilter();
    betweenFilter.setFrom(1L);
    betweenFilter.setTo(System.currentTimeMillis());
    betweenFilter.setTemporal(true);
    betweenFilter.setField("_timestamp");
    trendRequest.setFilters(Collections.<Filter>singletonList(betweenFilter));
    trendRequest.setField(null);
    try {
        queryExecutor.execute(trendRequest);
    } catch (Exception e) {
        assertEquals("Invalid field name", e.getMessage());
        return;
    }
    fail("Should have thrown exception");
}