question: public static void increaseTime ( Clock clock ) { Calendar c = Calendar . getInstance ( ) ; c . setTime ( clock . getCurrentTime ( ) ) ; c . add ( Calendar . SECOND , 1 ) ; clock . setCurrentTime ( c . getTime ( ) ) ; }
target:  increase clockUtils time Simulation operates in milliseconds. Sometime could happen (especially during automated tests) that 2 recorded events have the same time. In that case it is not possible to recognize order.