Verification of Snell's law of refraction