HSG Test....?!

I'm having a HSG test done today! 
What should I expect?.. Does it hurt?!..