ClusterResponse { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{" + " clusterName=" + clusterName + ", clusterId=" + clusterId + ", provisioningState=" + provisioningState + ", desiredStackVersion=" + desiredStackVersion + ", totalHosts=" + totalHosts + ", hosts=["); if (hostNames != null) { int i = 0; for (String hostName : hostNames) { if (i != 0) { sb.append(","); } ++i; sb.append(hostName); } } sb.append("]" + ", clusterHealthReport= " + clusterHealthReport + "}"); return sb.toString(); } ClusterResponse(Long clusterId, String clusterName,
                         State provisioningState, SecurityType securityType, Set<String> hostNames, Integer totalHosts,
                         String desiredStackVersion, ClusterHealthReport clusterHealthReport); Long getClusterId(); String getClusterName(); Set<String> getHostNames(); String getProvisioningState(); String getSecurityType(); void setSecurityType(String securityType); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); String getDesiredStackVersion(); void setDesiredConfigs(Map<String, DesiredConfig> configs); Map<String, DesiredConfig> getDesiredConfigs(); Integer getTotalHosts(); ClusterHealthReport getClusterHealthReport(); Map<String, Collection<ServiceConfigVersionResponse>> getDesiredServiceConfigVersions(); void setDesiredServiceConfigVersions(Map<String, Collection<ServiceConfigVersionResponse>> desiredServiceConfigVersions); void setCredentialStoreServiceProperties(Map<String, String> credentialServiceProperties); Map<String, String> getCredentialStoreServiceProperties();  }
@Test public void testToString() { ClusterResponse r = new ClusterResponse(null, null, null, null, null, null, null, null); r.toString(); }