assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
assertEquals("container", jmxUrl.getContainer());
}
public void testValidJMXUrlWithContainerAndCache() {
JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345/container/cache");
assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
assertEquals("container", jmxUrl.getContainer());
assertEquals("cache", jmxUrl.getCache());
}