private Host addHost(String hostName, Map<String, String> hostAttributes) throws Exception {
    clusters.addHost(hostName);
    Host host = clusters.getHost(hostName);
    host.setIPv4("ipv4");
    host.setIPv6("ipv6");
    host.setHostAttributes(hostAttributes);

    return host;
  }
Add a host to the system with the provided attributes.
@param hostName Host Name
@param hostAttributes Host Attributes
@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java