title: Is it possible to change the current time of a thread or jvm instance in java?
body: <p>I want to test some class methods that contain logic dependent on the current time it is running. I'd like to set the thread/jvm/system time to a specific future date in the JUnit setup and run my tests. Also I would like this to be temporary. Has anyone done this before?</p>
  
  <p>I was thinking of something similar to TimeZone.setDefault(timezone)</p>