Wash the aubergine and pat dry, dip them in flour and pan fry in oil until golden, continue until all are cooked.
Blend all the pesto ingredients and set to one side.
Lay the aubergine on 4 plates in overlapping circles and then add a slice of tomato, a slice of mozzarella some fresh basil and parmesan add another layer of aubergine on top and repeat the tomato, mozzarella, basil, parmesan. Place in a hot oven and gratinate.