def METHOD_NAME(
    mock_hadoop_server, mock_agent_event_publisher, exploit
):
    mock_hadoop_server.post(NEW_APP_URL, json={}, status_code=200)
    exploitation_success, propagation_success = exploit()
    exploitation_event = get_event_by_type(mock_agent_event_publisher, ExploitationEvent)
    assert not exploitation_success
    assert not propagation_success
    assert "missing the application-id" in exploitation_event.error_message