By filing a paternity action with the court and obtaining a Judgment of Paternity. If the parents agree who the father of the child is, they may obtain a judgment by agreement. However, if the parents do not agree, the court will order DNA testing of the mother, child, and alleged father, in order to conclusively establish whether someone is the father of a child.