### Question:
BooleanValue extends Value { @Override Value equal (Value v) { return mValue == v.toBooleanValue ().mValue ? cTrueStringValue : cFalseStringValue; } BooleanValue(boolean value);   BooleanValue(String text); @Override String toString();  }### Answer:
@Test public void testEqual () { assertEquals ("true", mTrueValue.equal (mTrueValue).toString ()); assertEquals ("false", mTrueValue.equal (mFalseValue).toString ()); assertEquals ("false", mFalseValue.equal (mTrueValue).toString ()); assertEquals ("true", mFalseValue.equal (mFalseValue).toString ()); }