11- Cover the lentils with water and bring to a boil. Cover and simmer until the lentils become tender.
22- Peel and dice the potatoes. Place in a large saucepan with enough water to cover. Bring to a simmer, then cover and simmer until tender, about 20 minutes. Drain and transfer to a small mixing bowl.
33- Stir the margarine into the potatoes until melted, and then add the milk alternative and mash. Cover and set aside until needed. Preheat the oven to 400 degrees.
44- Heat the oil in a medium pan. Add the garlic and mushrooms and sauté until they are golden.
55- Add the lentils and their liquid and bring to a gentle simmer. Stir in the optional wine, thyme, Italian parsley, salt and pepper. Cook gently for 5 minutes. Stir strained tomatoes into the lentil mixture.
66- Add the spinach, a little at a time, cooking just until it’s all wilted down. Remove from the heat; taste to adjust seasonings to your liking.
77- Lightly oil a 2-quart casserole or lasagne dish, or two deep-dish pie plates. Pour in the lentil mixture, add the corn, and then spread the potatoes evenly over the top. If using two pie plates, divide each mixture evenly between them.
88- Bake for 30 to 35 minutes, or until the potatoes begin to turn golden and slightly crusty. Let cool for 5 to 10 minutes.