@Test
public void durationBasedEvicting() throws MalformedObjectNameException {

    JmxReadRequest req =
            new JmxRequestBuilder(READ,"test:type=read")
                    .attribute("attr")
                    .build();
    HistoryKey key = new HistoryKey(req);
    store.configure(key,new HistoryLimit(0,1));
    JSONArray hist = updateNTimesAsListWithSleep(req, 3, 2000);
    assertEquals("1 History Entry", 1, hist.size());
}