@Test
public void testCloneSubNets() throws Exception {

    Network network = new Network();
    SubNetwork subnet = new SubNetwork(SUBNETWORK_NAME, VDC, REGION);
    network.addSubNet(subnet);
    Set<SubNetwork> subNets = network.cloneSubNets();
    assertEquals(subNets.size(), 1);
    for (SubNetwork subNet : subNets) {
        assertEquals(subNet.getName(), SUBNETWORK_NAME);
    }
}