Heat a medium sized nonstick over medium heat. Spread the 2 tablespoons of pesto on one side of the pan, and use the back of your spoon to form 2 small holes.
Crack an egg into each hole. Sprinkle with salt and pepper.
Once the bottom of your eggs have cooked, but the whites on top are still runny, reduce the heat of your pan to the stove's lowest setting, and place a lid on top. Continue to cook this way until the egg whites have set completely.
Serve your eggs over a toasted piece of bread, with tomatoes sprinkled on top, and enjoy!