SerialArithmeticNumber implements Comparable<Integer> { public final synchronized int getValue () { return (int) serialNumber; } SerialArithmeticNumber();  SerialArithmeticNumber(final int startValue); final int compareTo(final int anotherSerialNumber); final synchronized int compareTo(final Integer anotherSerialNumber); final synchronized int getValue(); final synchronized void increment(); final synchronized void setValue(final int newValue);  }
@Test public final void testInitialize () { final SerialArithmeticNumber serialNumber = new SerialArithmeticNumber(1); assertEquals(1, serialNumber.getValue()); }