SmsIntent extends BaseIntent { public SmsIntent phoneNumber(@Nullable final String number) { this.phoneNumber = number; return this; }  SmsIntent phoneNumber(@Nullable final String number); @NonNull String phoneNumber(); SmsIntent body(@Nullable final CharSequence body); @NonNull CharSequence body(); static final String URI_SCHEME; }
@Test public void testPhoneNumber() { final SmsIntent intent = new SmsIntent(); intent.phoneNumber("00124456"); assertThat(intent.phoneNumber(), is("00124456")); }
@Test public void testBuild() { final SmsIntent smsIntent = new SmsIntent(); smsIntent.phoneNumber("02644569874"); final Intent intent = smsIntent.build(context); assertThat(intent, is(notNullValue())); assertThat(intent.getAction(), is(Intent.ACTION_VIEW)); assertThat(intent.getData(), is(Uri.parse("sms:02644569874"))); }