What's an amniosetenis test?

Haley

Pretty sure I spelled that wrong,sorry

But what does it check and does it hurt