@Before
    public void launchActivity() {
        ActivityScenario.launch(CalculatorActivity.class);
    }
Use {@link ActivityScenario} to create and launch of the activity.
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorInstrumentationTest.java