on your mid 2011 mac mini there is a lion recovery partition. apple provides directions on how to copy this to a usb flash drive. so do that. install your SSD and then use the flash drive to install lion.
alternately, purchase the dual hard drive kit from ifixit, and just install the SSD as an extra drive. then you could boot to the recovery partition and install lion directly (this is my favorite answer).