@RunWith(AndroidJUnit4.class)
public class VanillaActivityTest {
@Rule
public final ActivityTestRule activityTestRule =
new ActivityTestRule<>(VanillaActivity.class, false, false);
@Test
public void blockingTest() throws Exception {
Intent intent = new Intent();
// Add your own intent extras here if applicable.
activityTestRule.launchActivity(intent);
CountDownLatch countdown = new CountDownLatch(1);
countdown.await();
}
}