networkRead1.setAssignedIpBlocks(assignedIpBlocks);
networkRead1.setGateway("192.1.1.0");
networkRead1.setNetmask("255.255.0.0");
List<IpAllocEntryRead> ipAllocEntries1 =
new ArrayList<IpAllocEntryRead>();
IpAllocEntryRead ipAllocEntry1 = new IpAllocEntryRead();
ipAllocEntry1.setIpAddress("192.1.1.3");
ipAllocEntry1.setNodeName("nodeName1");
ipAllocEntry1.setNodeGroupName("nodeGroupName1");
ipAllocEntry1.setClusterName("clusterName1");
IpAllocEntryRead ipAllocEntry2 = new IpAllocEntryRead();
ipAllocEntry2.setIpAddress("192.1.1.7");
ipAllocEntry2.setNodeName("nodeName2");
ipAllocEntry2.setNodeGroupName("nodeGroupName1");
ipAllocEntry2.setClusterName("clusterName1");
ipAllocEntries1.add(ipAllocEntry1);
ipAllocEntries1.add(ipAllocEntry2);
networkRead1.setIpAllocEntries(ipAllocEntries1);
NetworkRead networkRead2 = new NetworkRead();
networkRead2.setName("name2");
networkRead2.setPortGroup("portGroup2");
networkRead2.setDhcp(true);
List<IpAllocEntryRead> ipAllocEntries2 =
new ArrayList<IpAllocEntryRead>();
IpAllocEntryRead ipAllocEntry3 = new IpAllocEntryRead();
ipAllocEntry3.setIpAddress("192.1.10.3");
ipAllocEntry3.setNodeName("nodeName3");
ipAllocEntry3.setNodeGroupName("nodeGroupName2");
ipAllocEntry3.setClusterName("clusterName2");
IpAllocEntryRead ipAllocEntry4 = new IpAllocEntryRead();
ipAllocEntry4.setIpAddress("192.1.10.7");
ipAllocEntry4.setNodeName("nodeName4");
ipAllocEntry4.setNodeGroupName("nodeGroupName2");
ipAllocEntry4.setClusterName("clusterName2");
ipAllocEntries2.add(ipAllocEntry3);
ipAllocEntries2.add(ipAllocEntry4);
networkRead2.setIpAllocEntries(ipAllocEntries2);
getListNetwork(mapper, new NetworkRead[] { networkRead1, networkRead2 },
true);