SerialArithmeticNumber { public boolean lessThan (final int serialArithmeticNumber) { if (value - serialArithmeticNumber < 0) return true; return false; } SerialArithmeticNumber();  SerialArithmeticNumber(final int value); void increment(); boolean equals(final int serialArithmeticNumber); boolean lessThan(final int serialArithmeticNumber); boolean greaterThan(final int serialArithmeticNumber); int getValue();  }
@Test public void testLessThan () { assertEquals(true, serialNumber.lessThan(2)); assertEquals(false, serialNumber.lessThan(0)); serialNumber.increment(); assertEquals(true, serialNumber.equals(2)); }