Rinse and drain the beans and set aside.
Heat the olive oil in a saucepan and cook the garlic and rosemary for 1 minute, or until the garlic is softened.
Add the beans and stock and bring to a boil.
Reduce the heat and simmer for 3-4 minutes. Allow to cool.
Blend or process the mixture in a blender in small batches until smooth.
Add the lemon juice and season, to taste. Serve with toasted pita bread.
This dip can be kept in the refrigerator in a covered container for several days.