### Question:
JacobianPoint { JacobianPoint neg() { return new JacobianPoint(x, y.neg(), z); } JacobianPoint();   JacobianPoint(JacobianPoint p);   JacobianPoint(FP2Immutable x, FP2Immutable y, FP2Immutable z);   JacobianPoint(ECP2 p); @Override String toString(); @Override // Consider two Jacobian points to be equal iff their affine representations are equal. boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test void negTest() { JacobianPoint a = new JacobianPoint( new FP2Immutable(new BIG(1), new BIG(2)), new FP2Immutable(new BIG(3), new BIG(4)), new FP2Immutable(new BIG(5), new BIG(6))); assertTrue(a.add(a.neg()).isInfinity()); }