1. A method of inspecting a mask, the method including: obtaining a test image from the mask, wherein the test image includes a defect; computing a transmission, a phase, and a shape of the defect; and generating a simulated test wafer image based on the computing associated with the defect.