public static Intent verifyWithTimeoutThatStartActivityAttemptedExactlyOnce() {
    StartActivityListener mockListener = DependencyInjector.getStartActivityListener();
    ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class);
    verify(mockListener, timeout(UI_ACTION_EFFECT_TIMEOUT_MILLIS))
        .onStartActivityInvoked(Mockito.anyObject(), intentCaptor.capture());
    return intentCaptor.getValue();
  }
Verifies (with a timeout of {@link #UI_ACTION_EFFECT_TIMEOUT_MILLIS}) that an activity launch
has been attempted and returns the {@link Intent} with which the attempt occurred.

<p><b>NOTE: This method assumes that the {@link DependencyInjector} was configured using {@link
#withLaunchPreventingStartActivityListenerInDependencyResolver()}.</b>
javatests/com/google/android/apps/authenticator/testing/TestUtilities.java