def METHOD_NAME(monkeypatch):
    mock_event_publisher = MagicMock(spec=IAgentEventPublisher)
    patch_pypykatz([], monkeypatch)
    mimikatz_credential_collector = Plugin(
        plugin_name=PLUGIN_NAME, agent_id=AGENT_ID, agent_event_publisher=mock_event_publisher
    )
    mimikatz_credential_collector.run(options={}, interrupt=threading.Event())
    mock_event_publisher.publish.assert_called_once()
    mock_event_publisher_call_args = mock_event_publisher.publish.call_args[0][0]
    assert isinstance(mock_event_publisher_call_args, CredentialsStolenEvent)