@After
    public void tearDown() {
        // Clears Intents state.
        Intents.release();
    }
Use {@link ActivityScenarioRule} to create and launch the activity under test, and close it
after test completes. This is a replacement for {@link androidx.test.rule.ActivityTestRule}.
ui/espresso/IntentsAdvancedSample/app/src/androidTest/java/com/example/android/testing/espresso/intents/AdvancedSample/ImageViewerActivityTest.java