NodeInfo nodeInfo = listener.toNodeInfo(service);
checkNodeInfo(nodeInfo, "node1", "localhost", 1099, "user", "pw", "jmx", "JMXService");
}
private void checkNodeInfo(NodeInfo nodeInfo, String nodeName, String host, int port, String userName, String password, String protocol, String urlPath) {
ExtendedJMXConnectorInfo info = nodeInfo.getConnectorInfo();
assertEquals(nodeName, nodeInfo.getName());
assertEquals(host, info.getHost());
assertEquals(port, info.getPort());
assertEquals(userName, info.getUsername());
assertEquals(password, info.getPassword());
assertEquals(protocol, info.getProtocol());
assertEquals(urlPath, info.getUrlPath());
}