Fertility testing

How much does it cost for fertility testing for my mate and I? Do we just go to the hospital or are there special places for this? Does it hurt?