def METHOD_NAME(self, mock_generate_token):
    mocked_return_value = '{"message": "Authentication failed"}'
    mock_generate_token.return_value = get_mock_response(401, mocked_return_value)
    entry_point = EntryPoint(self.connection, self.configuration)
    ping_response = run_in_thread(entry_point.ping_connection)
    assert ping_response["success"] is False
    assert ping_response['error'] == 'reaqta connector error => Invalid App Secret key provided. Authentication Error: Token Generation Failed. Authentication failed'
    assert ping_response['code'] == ErrorCode.TRANSMISSION_AUTH_CREDENTIALS.value