### Question:
IntegerValue extends Value { @Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); } IntegerValue(int value);   IntegerValue(String value); @Override String toString();  }### Answer:
@Test public void testEqual () { assertEquals ("true", mPositiveValue.equal (new IntegerValue (123)).toString ()); assertEquals ("true", mZeroValue.equal (new IntegerValue (0)).toString ()); assertEquals ("true", mNegativeValue.equal (new IntegerValue (-123)).toString ()); assertEquals ("false", mPositiveValue.equal (new IntegerValue (0)).toString ()); assertEquals ("false", mZeroValue.equal (new IntegerValue (1)).toString ()); assertEquals ("false", mNegativeValue.equal (new IntegerValue (0)).toString ()); }