@Test
public void testDeleteHost() {

    testAddHost();
    String host1Guid = vns.macToGuid.get(mac1);
    vns.deleteHost(mac1, null);
    assertFalse(vns.macToGuid.containsKey(mac1));
    assertFalse(vns.portToMac.containsKey(hostPort1));
    assertFalse(vns.vNetsByGuid.get(host1Guid).hosts.contains(mac1));
    
    String host2Guid = vns.macToGuid.get(vns.portToMac.get(hostPort2));
    vns.deleteHost(null, hostPort2);
    assertFalse(vns.macToGuid.containsKey(mac2));
    assertFalse(vns.portToMac.containsKey(hostPort2));
    assertFalse(vns.vNetsByGuid.get(host2Guid).hosts.contains(mac2));
    String host3Guid = vns.macToGuid.get(mac3);        
    vns.deleteHost(mac3, hostPort3);
    assertFalse(vns.macToGuid.containsKey(mac3));
    assertFalse(vns.portToMac.containsKey(hostPort3));
    assertFalse(vns.vNetsByGuid.get(host3Guid).hosts.contains(mac3));
    
}