def METHOD_NAME(
    mock_clean_state, mock_vm_one, mock_vm_two_started, mock_vm_two_stopped
):
    """
    Test with two vms, stop one, delete one
    """
    # NOTE: this should yield 1 delete and 2 import events
    with patch.dict(vmadm.VMADM_STATE, mock_clean_state), patch.dict(
        vmadm.__salt__,
        {
            "vmadm.list": MagicMock(
                side_effect=[mock_vm_two_started, mock_vm_two_stopped, mock_vm_one]
            )
        },
    ):
        config = []
        ret = vmadm.validate(config)
        assert ret == (True, "Valid beacon configuration")
        # Initial pass (Initialized state and do not yield created events at startup)
        ret = vmadm.beacon(config)
        # Second pass (Stop one vm)
        ret = vmadm.beacon(config)
        res = [
            {
                "alias": "vm2",
                "tag": "stopped/00000000-0000-0000-0000-000000000002",
                "hostname": "vm2",
                "dns_domain": "example.org",
            }
        ]
        assert ret == res
        # Third pass (Delete one vm)
        ret = vmadm.beacon(config)
        res = [
            {
                "alias": "vm2",
                "tag": "deleted/00000000-0000-0000-0000-000000000002",
                "hostname": "vm2",
                "dns_domain": "example.org",
            }
        ]
        assert ret == res