@Test
  public void testScreenWithOneAccountNoFirstNoticeDisplayed() {
    accountDb.add("johndoeTotp@gmail.com", "7777777777777777", OtpType.TOTP, null, null, null);

    activityTestRule.launchActivity(null);

    ListView userList = activityTestRule.getActivity().findViewById(R.id.user_list);
    assertThat(userList.getChildCount()).isEqualTo(1);

    onView(withId(R.id.add_account_fab)).check(matches(isDisplayed()));
    onView(withId(R.id.first_account_message_header)).check(matches(not(isDisplayed())));
    onView(withId(R.id.first_account_message_detail)).check(matches(not(isDisplayed())));
    onView(withId(R.id.first_account_message_button_done)).check(matches(not(isDisplayed())));
  }
Unit tests for {@link AuthenticatorActivity} (part/shard 1).
javatests/com/google/android/apps/authenticator/AuthenticatorActivityTest.java