map.put(DefaultConnectionProvider.ID, "Test Connection");
map.put(DefaultConnectionProvider.URL, "service:jmx:rmi:///jndi/rmi://localhost:9999" +
"/jmxrmi");
map.put(DefaultConnectionProvider.USERNAME, "");
map.put(DefaultConnectionProvider.PASSWORD, "");
IConnectionWrapper wrapper = defProvider.createConnection(map);
assertTrue("Connection was null", wrapper != null);
wrapper.connect();
Root root = wrapper.getRoot();
assertTrue("Root was not null", root == null);
wrapper.loadRoot();
root = wrapper.getRoot();
assertTrue("Root was null", root != null);
Node[] children = root.getChildren();
assertTrue("children were null", children != null);
assertEquals("Example had the wrong number of domains", 5, children.length);