The design of the Fraction class requires the object to be immutable
Fraction
public void testSquare() { Fraction a = Fraction.getFraction(1, 2); Fraction b = a.square(); assertEquals(b, Fraction.ONE_QUARTER); }