Testing repetable task execution

I’am working on testings of my process which have a lot of connections to the third party services. I have mocked third party server to respond with 503 status code for two times and with status code 200 on third, problem is that: i need to wait for 1 hour between this requests( task it is on repeat ), how can i intercept, the proccess for ClockUtil.setCurrentTime after bad responces(or other way to speed up)? or maybe there is a way to mock that behavior, just could not find a suitable bunch of methods yet :frowning_face: