def METHOD_NAME(monkeypatch):
    monkeypatch.setattr(
        devicemapper, "multipath_status", FakeMultipathStatus())
    monitor = mpathhealth.Monitor(MONITOR_INTERVAL)
    monitor.callback = MonitorCallback()
    yield monitor
    # Do not hang the monitor cycles when we are about to stop
    monitor.callback.resume()
    monitor.stop()
    monitor.wait()