}
@Test
public void testCompareTo() throws Exception {
assertTrue(Comparable.class.isAssignableFrom(IntegerWithUnit.class));
assertEquals(0, new IntegerWithUnit(1, null).compareTo(new IntegerWithUnit(1, null)));
assertEquals(1, new IntegerWithUnit(123456789, null).compareTo(new IntegerWithUnit(123456, null)));
assertEquals(-1, new IntegerWithUnit(12, null).compareTo(new IntegerWithUnit(123456, null)));
assertEquals(1, new IntegerWithUnit(12, null).compareTo(null));
IntegerWithUnit instance = new IntegerWithUnit(211082, null);
assertEquals(0, instance.compareTo(instance));
}