Hi (Chetan mostly), Is this code in in MetricServiceTest. [1] useful?
@After public void registerMBeanServer() { context.registerService(MBeanServer.class, ManagementFactory.getPlatformMBeanServer()); } The tests pass for me without it, and registering a service after the tests is surprising - but I might be missing something. -Bertrand [1] https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/metrics/src/test/java/org/apache/sling/commons/metrics/internal/MetricServiceTest.java