The resolution for time.getTime() function is millisecond only. It has a different round up and down way, which may be slight different from TRUNCATE(). 
If I assert them equal, I may get error like:
junit.framework.AssertionFailedError: expected:<-12184250599877000> but was:<-12184250599876000>