Green beans have a hard time absorbing flavors b/c of its tight-waxy skin, so, the trick to picking up a flavor is to blanch them or soak them in a salt bath in order to get the tight cellulose walls to open up. This will allow flavors to be absorbed.
A great way to serve summer squash…. zucchinis, crooked neck, Patty Pan. … with a toasted nut oil, the combination goes well with the strong sweetness of the squash.