@Override
  public void startActivity(Intent intent) {
    StartActivityListener listener = DependencyInjector.getStartActivityListener();
    if ((listener != null) && (listener.onStartActivityInvoked(this, intent))) {
      return;
    }

    super.startActivity(intent);
  }
Base class for {@link AppCompatActivity} instances to make them more testable.
java/com/google/android/apps/authenticator/testability/TestableActivity.java