JBIDE-16254 common.model.test plugin stuck in Display.sleep() on hudson

Refactored delay to use Display.sleep() and Display.wake() to avoid
scenarios where display sleeps forever