def METHOD_NAME(self, mock_generate_token):
    mocked_return_value = {"success": True}
    mock_generate_token.return_value = mocked_return_value
    entry_point = EntryPoint(self.connection(), self.configuration())
    ping_result = run_in_thread(entry_point.ping_connection)
    assert ping_result["success"] is True