Heat oil in a medium saucepan over medium heat. Cook onion, celery, and carrot until tender, about 8 minutes. Increase heat to medium-high, add mushrooms, and cook until softened, 5 to 7 minutes.
Deglaze with wine, scraping up any brown bits with a wooden spoon.
Add tomatoes, rosemary, beans, and 1/2 cup water. Bring to a boil; reduce heat and simmer until slightly thickened, about 15 minutes. Season with salt and pepper. Serve with a drizzle of oil.