### Question:
Helper { @VisibleForTesting static JacobianPoint mapG2ToInfinity(JacobianPoint p) { JacobianPoint psi3 = psi2(psi(p)); return mxChain(psi3).add(psi2(p)).neg().add(p); }    }### Answer:
@Test void G2MapToInfinityTest() { JacobianPoint g2Generator = new JacobianPoint(ECP2.generator()); assertTrue(mapG2ToInfinity(g2Generator).isInfinity()); }