Strep b test

Does it hurt to get? What exactly do they do?