prepareStandardInitialisation(ConfigKey.DISCOVERY_AGENT_URL.getKeyValue(), url);
// Wait listening thread to warm up
Thread.sleep(1000);
try {
JolokiaDiscovery discovery = new JolokiaDiscovery("test",LogHandler.QUIET);
List<JSONObject> in = discovery.lookupAgentsWithTimeout(500);
for (JSONObject json : in) {
if (json.get("url") != null && json.get("url").equals(url)) {
return;
}
}