Anyone know about paternity testing!!!

How do you go about it? How does it work? Some ex is claiming my child is his and won't leave me alone about doing a paternity test to prove she's hers or not just just need to know how it works and what you have to do to get one done.