Mocking the time in Java