How do doctors test your hormone levels?

How do doctors test your hormone levels? Do you go to a normal doctor or a gynaecologist?