@SuppressWarnings("deprecation")
public void testTimestampByAddingGregorianUnitsSecond() {
Date d = jan1();
NSTimestamp timestamp = new NSTimestamp(d);
d.setSeconds(1);
NSTimestamp expected = new NSTimestamp(d);
NSTimestamp temp = timestamp.timestampByAddingGregorianUnits(0, 0, 0, 0, 0, 1);
assertEquals(expected.getNanos(), temp.getNanos());
assertEquals(expected.getTime(), temp.getTime());
}