Configuration.CONFIG_PROPERTY_PREFIX
+ "counter:role=" + counter.getKey().getRole().getName()
+ ",name=" + counter.getKey().getName());
counter.setJmx(objectName);
server.registerMBean(new CounterJMX(counter), objectName);
try {
assertTrue(server.isRegistered(objectName));
assertEquals(3., server.getAttribute(objectName, "Max"));
assertEquals("def", server.getAttribute(objectName, "Name"));
assertEquals("jdbc", server.getAttribute(objectName, "Role"));