I have a java method and I want to somehow mock the system clock for testing purposes, so I can have that method return the result of what it would after 1 minute. I do now want to use a thread and block the time for a minute so instead was wondering if I can fake the time and assume 1 minute already passed.
More specifically, I have a method which runs every 1 minute and I want to test if it was invoked twice after 2 minutes.