@Override
  protected AccountDb createAccountDb() {
    // Delete the database to prevent leaking state between tests
    AccountDb.deleteDatabase(getContext());
    return super.createAccountDb();
  }
Dependency injector module used during automated testing. The module aims to leave as much
functionality in the app as possible, while also stubbing/resetting certain aspects to avoid
inter-test state leakage, spurious actions in response to events outside of the app, and
dependency on the configuration of the test device.
javatests/com/google/android/apps/authenticator/testability/DependencyInjectorModuleForIntegrationTesting.java