### Question:
PhoneVerificationActivity extends AppCompatBase { public static Intent createIntent(Context context, FlowParameters flowParams, String phone) { return BaseHelper.createBaseIntent(context, PhoneVerificationActivity.class, flowParams) .putExtra(ExtraConstants.EXTRA_PHONE, phone); }  static Intent createIntent(Context context, FlowParameters flowParams, String phone); @Override void onBackPressed(); void submitConfirmationCode(String confirmationCode);  }### Answer:
@Test public void testPhoneNumberFromSmartlock_prePopulatesPhoneNumberInBundle() { Intent startIntent = PhoneVerificationActivity.createIntent(RuntimeEnvironment .application, TestHelper.getFlowParameters(Collections.singletonList(AuthUI .PHONE_VERIFICATION_PROVIDER)), YE_RAW_PHONE); mActivity = Robolectric.buildActivity(PhoneVerificationActivity.class).withIntent (startIntent).create(new Bundle()).start().visible().get(); VerifyPhoneNumberFragment verifyPhoneNumberFragment = (VerifyPhoneNumberFragment) mActivity.getSupportFragmentManager().findFragmentByTag(VerifyPhoneNumberFragment .TAG); assertNotNull(verifyPhoneNumberFragment); mPhoneEditText = (EditText) mActivity.findViewById(R.id.phone_number); mCountryListSpinner = (CountryListSpinner) mActivity.findViewById(R.id.country_list); assertEquals(PHONE_NO_COUNTRY_CODE, mPhoneEditText.getText().toString()); assertEquals(YE_COUNTRY_CODE, String.valueOf(((CountryInfo) mCountryListSpinner.getTag()) .countryCode)); }