Very dangerous to do because it makes the test dependent on time and make the test fragile. You can use a countdownlatch to synchronize on the situation you want to happen.