1Bring a large pot of water with 1 tsp salt to a rolling boil. Cook the pasta for 1 minute less than the packet says. Before draining, scoop out 150 ml of the cooking water.
2Heat the olive oil in a wide pan over medium heat and cook the sliced garlic for 1 minute until fragrant but not brown.
3Add the drained white beans and cook for 3 minutes, gently mashing a few with a spoon.
4Lower the heat. Add the mascarpone and 100 ml of the reserved pasta water, and stir until you have a smooth, creamy sauce.
5Stir in the pesto and the drained pasta, toss for 1 minute, and loosen with a splash more pasta water if it looks thick.
6Take the pan off the heat, grate in the parmesan, season with black pepper, and serve immediately.