@Test
    public void testGetResponseStatsSummary() throws Exception {
        EsMetricsAccessor metrics = new EsMetricsAccessor(client);

        // s-ramp-api data
        ResponseStatsSummaryBean stats = metrics.getResponseStatsSummary("JBossOverlord", "s-ramp-api", "1.0",
                parseDate("2015-06-01"), new DateTime().withZone(DateTimeZone.UTC));
        Assert.assertEquals(46L, stats.getTotal());
        Assert.assertEquals(3L, stats.getErrors());
        Assert.assertEquals(0L, stats.getFailures());

        // test/echo data
        stats = metrics.getResponseStatsSummary("Test", "echo", "1.0",
                parseDate("2015-06-01"), new DateTime().withZone(DateTimeZone.UTC));
        Assert.assertEquals(214L, stats.getTotal());
        Assert.assertEquals(2L, stats.getErrors());
        Assert.assertEquals(41L, stats.getFailures());

    }
Test method for {@link EsMetricsAccessor#getResponseStatsSummary(String, String, String, DateTime, DateTime)
manager/test/api/src/test/java/io/apiman/manager/test/es/EsMetricsAccessorTest.java