Automating Timer and Scheduler Testing in Java Unit Tests