Identified in court papers only as G.S., the Onondaga man “paid his cousin a sum of money to take the DNA test” so he wouldn’t have to risk being found out as the father of his former girlfriend’s child, said Judge Michael Hanuszczak.

The judge informed both sides when he got the test results that the “DNA test excluded [G.S.] from the paternity of the subject child.”

But when the mom, identified as M.B., reviewed the report, she told the judge that G.S. “was not the person who was tested,” because the picture and signature attached to it weren’t his, says Hanuszczak’s decision, published yesterday in the New York Law Journal.

After a second test “showed a 99.99 percent probability of paternity. [G.S.] thereupon admitted paternity of the subject child,” the judge wrote. Hanuszczak has ordered a hearing to determine how much the cheater should pay in child support.

Both G.S. and his unidentified test-taking cousin also have been “charged with second-degree forgery, first-degree falsifying business records, tampering with physical evidence in connection with the first DNA test . . . ”