private static NodeInfo toNodeInfo(NodeStats stat) {
String nodeName = stat.getNode().getName();
NodeInfo info = new NodeInfo(nodeName);
+ info.setHost(stat.getHostname());
ProtobufSystemInfo.Section.Builder section = ProtobufSystemInfo.Section.newBuilder();
section.setName("Search State");
assertThat(nodes).hasSize(1);
NodeInfo node = nodes.iterator().next();
assertThat(node.getName()).isNotEmpty();
+ assertThat(node.getHost()).isNotEmpty();
assertThat(node.getSections()).hasSize(1);
ProtobufSystemInfo.Section stateSection = node.getSections().get(0);