@Test
public void testRegisterMBean() throws Exception {

	MBeanUtils.registerMBean(MBeanUtils.queryMBean("java.lang:type=ClassLoading"), "LoadedClassCount", name("jvm_class_count").build(), metricRegistry);
	final Gauge classLoadingGauge = metricRegistry.getGauges().get(name("jvm_class_count").build());
	assertNotNull(classLoadingGauge);
	assertTrue(((Integer) classLoadingGauge.getValue()) > 1);
}