def METHOD_NAME(
    agent_binary_downloaded: Event,
    mock_hadoop_server,
    exploit: Callable[[], Tuple[bool, bool]],
    mock_agent_event_publisher: MagicMock,
):
    agent_binary_downloaded.clear()
    exploitation_success, propagation_success = exploit()
    propagation_event = get_event_by_type(mock_agent_event_publisher, PropagationEvent)
    assert exploitation_success
    assert not propagation_success
    assert not propagation_event.success