Put all the ingredients in a food processor and blend until smooth. Reserve some of the juice from cooking the beans, or if you are using a canned product extra water can be used if there is not enough in the can. Season, to taste, with salt and pepper.