You install a virtual machine w/ Windows on it or use any number of cloud-based solutions such as BrowserStack. Right now, you can download Virtualbox (free) and install Windows 8 Consumer Preview (free for now) and test IE7, 8, 9, & 10.

I've already commented previously how I think MS needs to consider better IE testing options for Mac developers but the above scenarios work, albeit aren't as convenient.