@Test public void test() { LocalDateTime now = LocalDateTime.now(); LocalDateTime keytime = now.withMinute(0).withSecond(0).withNano(0); mongoMetricsRepository.prepareMinutes(keytime); Map<String, Long> accumulators = Maps.newHashMap(); accumulators.put(MetricKeys.globalTotalSize(), 5l); metricsService.sync(accumulators); Timeserie serie = metricsService.serie(MetricKeys.globalTotalSize()); System.err.println(serie); }