Heat the oil in a large skillet over medium heat. Add the garlic and cook, stirring occasionally, until beginning to brown, about 2 minutes.
Add the tomatoes and rosemary and cook, stirring, for 1 minute. Add the wine and bring to a simmer. Stir in the beans and ½ teaspoon each salt and pepper and cook until heated through, about 1 minute more. Toss with the parsley.
