Collections.singletonMap("namenode_heapsize", "1025");
final Map<String, String> databaseProperty =
Collections.singletonMap("javax.jdo.option.ConnectionURL", "localhost:12345");
final HostGroup hostGroup1 = createNiceMock(HostGroup.class);
final HostGroup hostGroup2 = createNiceMock(HostGroup.class);
expect(hostGroup1.getComponents()).andReturn(new ArrayList<String>() {{
add("NAMENODE");
add("HBASE_MASTER");
add("HIVE_SERVER");
add("ZOOKEEPER_SERVER");
}}).anyTimes();
expect(hostGroup1.getHostInfo()).andReturn(Collections.singletonList("h1")).anyTimes();
expect(hostGroup2.getComponents()).andReturn(Collections.singletonList("ZOOKEEPER_SERVER")).anyTimes();
expect(hostGroup2.getHostInfo()).andReturn(Collections.singletonList("h2")).anyTimes();
Map<String, HostGroup> hostGroups = new
HashMap<String, HostGroup>() {{
put("host_group_1", hostGroup1);
put("host_group_2", hostGroup2);