Add the green beans and cook for another four minutes. While the spaghetti is cooking, add the basil, garlic, Parmesan cheese and lemon ... the pan and pour over the pesto mixture.