def METHOD_NAME(self):
    """Test nested virtualization on Vmware hypervisor"""
    if self.hypervisor.lower() not in ["vmware"]:
         self.skipTest("Skipping test because suitable hypervisor/host not present")
    # 1) Update nested virtualization configurations, if needed
    configs = Configurations.list(self.apiclient, name="vmware.nested.virtualization")
    rollback_nv = False
    rollback_nv_per_vm = False
    for conf in configs:
        if (conf.name == "vmware.nested.virtualization" and conf.value == "false"):
            config_update = Configurations.update(self.apiclient, "vmware.nested.virtualization", "true")
            self.logger.debug("Updated global setting vmware.nested.virtualization to true")
            rollback_nv = True
        elif (conf.name == "vmware.nested.virtualization.perVM" and conf.value == "false"):
            config_update = Configurations.update(self.apiclient, "vmware.nested.virtualization.perVM", "true")
            self.logger.debug("Updated global setting vmware.nested.virtualization.perVM to true")
            rollback_nv_per_vm = True
    try:
        # 2) Deploy a vm
        virtual_machine = VirtualMachine.create(
            self.apiclient,
            self.services["small"],
            accountid=self.account.name,
            domainid=self.account.domainid,
            serviceofferingid=self.service_offering.id,
            mode=self.services['mode']
        )
        self.assertTrue(virtual_machine is not None, "VM failed to deploy")
        self.assertTrue(virtual_machine.state == 'Running', "VM is not running")
        self.logger.debug("Deployed vm: %s" % virtual_machine.id)
        isolated_network = Network.create(
            self.apiclient,
            self.services["isolated_network"],
            self.account.name,
            self.account.domainid,
            networkofferingid=self.isolated_network_offering.id)
        virtual_machine.stop(self.apiclient)
        virtual_machine.add_nic(self.apiclient, isolated_network.id)
        virtual_machine.start(self.apiclient)
        # 3) SSH into vm
        ssh_client = virtual_machine.get_ssh_client()
        if ssh_client:
            # run ping test
            result = ssh_client.execute("cat /proc/cpuinfo | grep flags")
            self.logger.debug(result)
        else:
            self.fail("Failed to setup ssh connection to %s" % virtual_machine.public_ip)
        # 4) Revert configurations, if needed
        self.rollback_nested_configurations(rollback_nv, rollback_nv_per_vm)
        #5) Check for CPU flags: vmx for Intel and svm for AMD indicates nested virtualization is enabled
        self.assertTrue(result is not None, "Empty result for CPU flags")
        res = str(result)
        self.assertTrue('vmx' in res or 'svm' in res)
    except Exception as e:
        self.debug('Error=%s' % e)
        self.rollback_nested_configurations(rollback_nv, rollback_nv_per_vm)
        raise e