@classmethod
def create_endpoint_group(cls, name, type, endpoints):
    """Wrapper utility that returns a test ipsec policy."""
    body = cls.client.create_endpoint_group(endpoints=endpoints, type=type,
        description='endpoint type:' + type, name=name)
    endpoint_group = body['endpoint_group']
    cls.endpoint_groups.append(endpoint_group)
    return endpoint_group
