@Test
public void validateStartEndStatistics() throws Exception {

    Object dummyPayload = new JsonValue("{'test': 'some value'}");
    Object dummyContext1 = "Some context value";
    EventEntry measure = Publisher.start(EVENT_BASIC_TEST, dummyPayload, dummyContext1);
    Math.sqrt(342972);
    measure.end();
    Thread.currentThread().sleep(100); // Statistics is not necessarily updated in a synchronous fashion
    Object totals = mbs.getAttribute(getStatisticsMBean(), "Totals");
    Assert.assertTrue(totals instanceof Map);
    Object statisticsEntry = ((Map)totals).get(EVENT_BASIC_TEST.asString());
    Assert.assertNotNull(statisticsEntry, "Expected a statistic entry for " + EVENT_BASIC_TEST + ", but is null.");
    System.out.println("Basic invoke statistics test entry: " + statisticsEntry);
}