For onPause and onResume, why not use the helper method provided by instrumentation test utility, e.g. callActivityOnPause, callActivityOnResume, see http://developer.android.com/reference/android/app/Instrumentation.html#callActivityOnResume%28android.app.Activity%29