Utilities for JUnit test such as unlock and lock keyguards.