FieldElementF2m extends FieldElement implements Serializable { @Override public FieldElement addInv() { return this; } FieldElementF2m(BigInteger data, BigInteger modulus); private  FieldElementF2m(); @Override FieldElement add(FieldElement f); @Override FieldElement mult(FieldElement f); @Override FieldElement addInv(); @Override FieldElement multInv();  }
@Test public void testAddInv() { FieldElementF2m tmp = (FieldElementF2m) p4.addInv(); assertEquals(p4, tmp); }