Maternity of a child is in question? A legal maternity test determines whether the woman tested is the biological mother of the child tested. Maternity is determined by comparing the child’s DNA with the DNA profile of the alleged mother. A legal maternity test can be used to establish the parenthood of an individual for a court case such as child support, social security, or child custody.