def METHOD_NAME(monkeypatch):
    """
    Create fake hsm instance for testing connection verbs.
    Monkeypatch the hsm and storageServer to allow testing the flows without
    attempting real connections.
    """
    monkeypatch.setattr(hsm, 'sdCache', FakeStorageDomainCache())
    monkeypatch.setattr(hsm.vars, 'task', task.Task("fake-task-id"))
    monkeypatch.setattr(storageServer, 'ConnectionFactory',
                        FakeConnectionFactory())
    return FakeConnectHSM()