Prepare pasta according to package directions. Drain well. Combine the first 6 ingredients (olive oil through salt) and add to the bowl of a food processor and process until smooth. Coat the pasta with pesto and toss in beans and tomatoes. Serve as a warm side or cold salad.