Preheat the oven to 450°F.
Heat the oil in a large, oven-safe saute pan. Then add the the garlic and cook over medium-low heat for one minute.
1 tablespoon olive oil, 2 cloves garlic, minced
Add the olives, capers, salt, pepper, and red pepper flakes and cook, stirring, for one minute.
½ cup pitted black olives, chopped, 1 tablespoon capers, rinsed and coarsely chopped, ½ teaspoon salt, ¼ teaspoon black pepper, ⅛ teaspoon red pepper flakes
Add the canned tomatoes. Bring to a simmer under medium heat and cook for about 5 minutes until the tomatoes have reduced somewhat.
28 ounce canned chopped tomatoes
Add the beans and stir them into the tomatoes.
2 cans white beans, rinsed and drained.
Turn off the heat and stir the mozzarella into the beans.
1 cup shredded dried mozzarella
Top with Parmesan and carefully transfer the pan to the oven. Bake for 10 minutes until the Parmesan is starting to brown.
¼ cup Parmesan, grated
Garnish with the chopped basil or parsley and serve immediately.
¼ cup fresh basil or parsley, chopped