History, exam, MRI
The person's story (history) usually makes the diagnosis.
The physical examination will tend to confirm it. Tests like MRI
and ct (with or without contrast dye) simply indicate where the herniation is. Sometimes other problems cause similar symptoms and signs, so the MRI or ct are necessary if invasive treatment is being considered.