HSG TEST

Hello friends,
Iam trying to conceive from last 1 year and doctor recommended for hsg test (fallopian tube test).so,anyone who gone through this test ,i want to know whether it is painfull ?pain remains for how many hours?what kind of tools are used?whole procedure in details plz.Iam very much scared of this test.
Thank you.