How can a man get a paternity test for a newborn without the mother’s knowledge?

I know of a man whose now ex says she is pregnant but became offended when she thought he implied it may not be his. If he is there for the birth, is there a way he can be sure the baby is his before signing anything claiming him as the dad?
16 answers 16