Place mussels in a large pan with the wine and set over high heat. Cook, stirring frequently, until all the mussels have opened. Remove from heat and set aside to cool. Strain cooking liquid through several layers of cheesecloth into a small bowl and set aside.
When mussels are cool enough to handle, remove flesh and discard shells.
Bring 6 quarts of water to a boil and add 2 tablespoons salt.
In a saucepan, heat olive oil over medium-high heat and add garlic. When garlic is soft but not brown, add tomatoes and cook for 10 minutes, or until tomatoes are soft and disintegrating. Stir in cooked beans and simmer gently while pasta cooks.
Cook pasta in boiling water until it is almost cooked through, about 8 minutes. Drain the pasta and add to the bean mixture. Add the mussels and strained mussel liquid. Stir over low heat 5 minutes, then add parsley, basil, and salt and pepper, to taste. Serve immediately.