Remove sleep() from junit tests