'Call ``GET /endpoints?service_id={service_id}``.'

def test_list_endpoints_filtered_by_service_id(self):

    ref = self._create_random_endpoint()
    response = self.get(('/endpoints?service_id=%s' % ref['service_id']))
    self.assertValidEndpointListResponse(response, ref=ref)
    for endpoint in response.json['endpoints']:
        self.assertEqual(ref['service_id'], endpoint['service_id'])
