def METHOD_NAME(uri):
    mock_response = create_autospec(Response)
    mock_response.json.return_value = existing_service_account
    if uri == SERVICE_ACCOUNT_URI + app_spec.name:
        return mock_response
    else:
        raise NotFound