If a court orders a paternity test, the mother must comply. Refusal to do so can result in legal consequences, such as being held in contempt of court. In some cases, the court may even assume paternity if the mother refuses to cooperate with the testing process.