@Test
public void testGetWindowStartNoRounding() throws Exception {

    DateTime currentTime = new DateTime();
    final String json = String.format("{ \"operator\": \"last\", \"currentTime\": %d, \"duration\": \"1h\" }", currentTime.getMillis());
    LastFilter lastFilter = objectMapper.readValue(json, LastFilter.class);
    TimeWindow timeWindow = lastFilter.getWindow();
    Assert.assertEquals("_timestamp", lastFilter.getField());
    Assert.assertEquals(currentTime.getMillis(), lastFilter.getCurrentTime());
    Assert.assertEquals(currentTime.minusHours(1)
                                .getMillis(), timeWindow.getStartTime());
}