@Test
public void testDeleteNetwork() {

    testModifyNetwork();
    // Delete newnet2
    vns.deleteNetwork(guid2);
    assertTrue(vns.gatewayToGuid.get(IPv4.toIPv4Address(gw1)).contains(guid1));
    assertTrue(vns.gatewayToGuid.get(IPv4.toIPv4Address(gw1)).contains(guid3));
    assertTrue(vns.gatewayToGuid.get(IPv4.toIPv4Address(gw1)).size() == 2);
    assertFalse(vns.nameToGuid.containsKey(net2));
    assertFalse(vns.guidToGateway.containsKey(net2));
    assertTrue(vns.vNetsByGuid.get(guid2)==null);
}