Fertility testing

A
Has anyone had the test done where they check if your tubes are blocked? What does it involve? Does it hurt?