BigIntegerFieldElement implements FieldElement { @Override public String toString() { return "BigIntegerFieldElement{" + "value=" + value + ", modulus=" + modulus + '}'; } private  BigIntegerFieldElement(BigInteger value, BigIntegerModulus modulus); @Override FieldElement add(FieldElement operand); @Override FieldElement subtract(FieldElement operand); @Override FieldElement negate(); @Override FieldElement multiply(FieldElement operand); @Override FieldElement sqrt(); @Override FieldElement modInverse(); @Override String toString();  }
@Test public void toStringTest() { FieldElement element = BigIntegerFieldElement.create(BigInteger.valueOf(7854), bigModulus); assertThat(element.toString(), StringContains.containsString("7854")); }