def METHOD_NAME(self, mock_generate_token):
    mocked_return_value = '{"token": "abcdef", "expiresAt": 1658954054.299}'
    mock_generate_token.return_value = get_mock_response(200, mocked_return_value, 'byte')
    entry_point = EntryPoint(self.connection, self.configuration)
    ping_result = run_in_thread(entry_point.ping_connection)
    assert ping_result["success"] is True