HostGroupInfo { public String getHostGroupName() { return hostGroupName; } HostGroupInfo(String hostGroupName); String getHostGroupName(); Collection<String> getHostNames(); int getRequestedHostCount(); void addHost(String hostName); void addHosts(Collection<String> hosts); void setRequestedCount(int num); void setConfiguration(Configuration configuration); Configuration getConfiguration(); void setPredicate(String predicateString); Predicate getPredicate(); String getPredicateString(); void addHostRackInfo(String host, String rackInfo); Map<String, String> getHostRackInfo(); void removeHost(String hostname);  }
@Test public void testGetHostGroupName() { HostGroupInfo group = new HostGroupInfo("test-name"); assertEquals("test-name", group.getHostGroupName()); }