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

    Document document = TestUtils.getDocument("G", 1398653118006L, new Object[]{"data.version", 1}, mapper);
    queryStore.save(TestUtils.TEST_TABLE_NAME, document);
    elasticsearchServer.getClient().admin().indices()
            .prepareRefresh(ElasticsearchUtils.getCurrentIndex(TestUtils.TEST_TABLE_NAME, document.getTimestamp()))
            .setForce(true)
            .execute()
            .actionGet();
    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("data.version");
    trendRequest.setValues(Collections.<String>emptyList());
    TrendResponse expectedResponse = new TrendResponse();
    TrendResponse.Count count = new TrendResponse.Count();
    count.setPeriod(1398643200000L);
    count.setCount(1);
    expectedResponse.setTrends(Collections.<String, List<TrendResponse.Count>>singletonMap("1", Arrays.asList(count)));
    TrendResponse actualResponse = TrendResponse.class.cast(queryExecutor.execute(trendRequest));
    assertEquals(expectedResponse, actualResponse);
}