@Test
public void testTtlWorks() throws Exception {
final long ts = timestamp.incrementAndGet();
Locator locator = Locator.createLocatorFromPathComponents("12345", "test", "ttl");
IMetric metric = new PreaggregatedMetric(ts, locator, new TimeValue(2, TimeUnit.SECONDS), simple);
// put it
writer.insertMetrics(Lists.newArrayList(metric), CassandraModel.CF_METRICS_PREAGGREGATED_FULL);
// read it quickly.