@Test
public void testGetWindow() throws Exception {

    final String json = "{\n" +
            "  \"operator\" : \"last\",\n" +
            "  \"duration\" : \"1h\"\n" +
            "}";
    LastFilter lastFilter = objectMapper.readValue(json, LastFilter.class);
    TimeWindow timeWindow = lastFilter.getWindow();
    Assert.assertTrue((timeWindow.getEndTime() - timeWindow.getStartTime()) == 3600000);
}