02Heat 1 tablespoon of the oil over medium heat in a large, heavy soup pot or Dutch oven, and add the chopped onion. Cook, stirring, until tender, about five minutes. Add the remaining garlic, and stir together until fragrant, 30 seconds to a minute. Add the tomatoes, tomato paste, sugar, oregano, cayenne and salt to taste. Cook, stirring often, for 10 to 15 minutes, until the tomatoes have cooked down somewhat and smell very fragrant. Stir in the beans and 3 cups of their cooking broth (refrigerate the rest if you are making this ahead; you may need it for thinning out). Bring to a simmer, cover and cook over low heat for 30 minutes, until the mixture is thick and fragrant. Stir often so that it doesn’t stick to the bottom of the pot. Add pepper, taste and adjust salt and garlic.
03Preheat the oven to 375 degrees. Oil a 3-quart gratin or baking dish. Spoon the tomatoes and beans into the baking dish. Combine the breadcrumbs and cheese in a bowl, and toss with the remaining tablespoon of olive oil. Sprinkle in an even layer over the beans. Bake 30 minutes, or until the top is browned and the gratin is bubbling. Serve hot or warm.