### Question:
FixedPoint { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FixedPoint that = (FixedPoint) o; return value.equals(that.value); } FixedPoint(BigInteger value); static FixedPoint fromString(String inputString); FixedPoint add(FixedPoint addend); FixedPoint subtract(FixedPoint subtrahend); FixedPoint multiplyInteger(BigInteger multiplicand); FixedPoint multiplyInteger(int multiplicand); FixedPoint divideByPowerOfTwo(int shift); int compareTo(FixedPoint comparand); BigInteger toBigInteger(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int PRECISION; static final BigInteger MAX_PRECISION; static final FixedPoint ZERO; static final FixedPoint ONE; }### Answer:
@Test public void testEquals() { FixedPoint f1Copy = FixedPoint.fromString("1.6875"); Assert.assertNotEquals(f1, f2); Assert.assertEquals(f1, f1Copy); Assert.assertEquals(f1, f1); }