@Test
public void testDeleteSubNet() throws Exception {

    Network network = new Network();
    network.setNetworkName(NETWORK_NAME);
    SubNetwork subnet = new SubNetwork(SUBNETWORK_NAME, VDC, REGION);
    Set<SubNetwork> subNets = new HashSet<SubNetwork>();
    subNets.add(subnet);
    network.setSubNets(subNets);
    network.deleteSubNet(subnet);
    assertEquals(network.getSubNets().size(), 0);
}