place mushrooms into the oven and roast for 8-10 minutes until mushrooms are just tender. remove baking dish from oven and crumble over the ricotta, sprinkle with mozzarella. return dish to the oven and bake 3-4 minutes until cheese is melted. drizzle pesto over each mushroom and serve.