SerialArithmeticNumber { public boolean greaterThan (final int serialArithmeticNumber) { if (serialArithmeticNumber - value < 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 testGreaterThan () { assertEquals(true, serialNumber.greaterThan(0)); assertEquals(false, serialNumber.greaterThan(2)); }