nets.add(net1);
Mockito.when(cluster1.getAllNetworks()).thenReturn(nets);
Mockito.when(cluster1.getName()).thenReturn("cluster1");
List<VcHost> hosts = new ArrayList<VcHost>();
VcHost host1 = Mockito.mock(VcHost.class);
hosts.add(host1);
try {
Mockito.when(cluster1.getHosts()).thenReturn(hosts);
VcResourcePool rp1 = Mockito.mock(VcResourcePool.class);