Heat the olive oil in a large saucepan. Add the garlic and fry until just starting to colour then add the courgettes. Fry for about 5 minutes until they start to soften.
Add the peas and the drained beans then pour over the hot stock. Cook for about 3 minutes more before adding the pesto. Stir through then add seasoning
Ladle the soup into bowls and sprinkle on some freshly grated parmesan to serve. Accompany with some fresh bread if you are hungry!