### Question:
FixedPoint { public int compareTo(FixedPoint comparand) { if (null == comparand) { throw new IllegalArgumentException("Null input to FixedPoint method"); } return value.compareTo(comparand.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 testComparator() { Assert.assertEquals(f1.compareTo(f2), -1); Assert.assertEquals(f2.compareTo(f1), 1); Assert.assertEquals(f1.compareTo(f1), 0); }