While staying in Tuscany we had this as a side dish. This is as close as I can come to the original. We have it as a main dish with spaghetti squash. You could also use pasta...I would suggest penne or another sturdy pasta.
Rinse and dry the spaghetti squash. Poke several holes on all sides. Place in the microwave on a folded paper towel to absorb excess moisture. Microwave on high until it gives when you press on the outside shell. Set aside to cool.
Heat olive oil in a large nonstick saute pan. Add onions and cook over medium heat until translucent, stirring constantly. Add garlic and stir until fragrant - about a minute. Stir in beans and tomato sauce. When combined, stir in seasonings. Lower heat and simmer for about 20 minutes to blend the flavors. Note: if you want a less dense mixture, just add more sauce until you like the consistency. Be sure to remove the rosemary sprig before serving!
Cut the squash open and remove seeds. Use tongs to pull out the spaghetti-like threads of squash. Put a portion in each serving bowl. Spoon the beans and tomato mixture over the squash. Garnish with lots of grated romano. Serve with a salad to complete the meal.