Heat a pan and add some oil. Now chop the onion and the garlic and put it in the pan.
Let it fry for a couple of minutes so that the onion get's translucent but not burned.
Add the spinach and stir it together.
Chop the cheese into smaller pieces and ad it to the pan together with the beans.
Season the filling with salt and pepper.