@Before
  public void intentsInit() {
    // initialize Espresso Intents capturing
    Intents.init();
  }
Use {@link ActivityScenarioRule} to create and launch the activity under test.
ui/espresso/BasicSample/app/src/test/java/com/example/android/testing/espresso/BasicSample/ChangeTextBehaviorLocalTest.java