public void testGetService() {
List<ServiceNode> serviceNodes = client.getServiceNodes("consul");
assertNotNull(serviceNodes, "serviceNodes is null");
assertFalse(serviceNodes.isEmpty(), "serviceNodes is empty");
ServiceNode node = serviceNodes.get(0);
assertNotNull(node.getAddress(), "address is null");
assertNotNull(node.getNode(), "node is null");
assertNotNull(node.getServiceID(), "serviceId is null");
assertNotNull(node.getServiceName(), "serviceName is null");
assertTrue(node.getServicePort() > 0, "servicePort is wrong");
}