ShareIntent extends BaseIntent<ShareIntent> { public ShareIntent uris(@NonNull final Uri... uris) { return uris(Arrays.asList(uris)); }  ShareIntent content(@Nullable final CharSequence text); @NonNull CharSequence content(); ShareIntent uri(@Nullable final Uri uri); @Nullable Uri uri(); ShareIntent uris(@NonNull final Uri... uris); ShareIntent uris(@Nullable final List<Uri> uris); @NonNull List<Uri> uris(); ShareIntent mimeType(@NonNull @MimeType.Value final String type); @NonNull @MimeType.Value String mimeType(); ShareIntent title(@Nullable final CharSequence title); @NonNull CharSequence title();  }
@Test public void testBuildWithUrisContent() { final Uri uriFirst = Uri.parse("content: final Uri uriSecond = Uri.parse("content: final ShareIntent shareIntent = new ShareIntent(); shareIntent.uris(uriFirst, uriSecond); final Intent intent = shareIntent.build(context); assertThat(intent.getAction(), is(Intent.ACTION_SEND_MULTIPLE)); assertThat(intent.getCharSequenceExtra(Intent.EXTRA_TITLE), is(nullValue())); assertThat(intent.getCharSequenceExtra(Intent.EXTRA_TEXT), is(nullValue())); final List<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); assertThat(uris, is(notNullValue())); assertThat(uris.size(), is(2)); assertThat(uris.get(0), is(uriFirst)); assertThat(uris.get(1), is(uriSecond)); }
@Test public void testUris() { final Uri uriFirst = Uri.parse("content: final Uri uriSecond = Uri.parse("content: final ShareIntent intent = new ShareIntent(); intent.uris(uriFirst, uriSecond); final List<Uri> uris = intent.uris(); assertThat(uris, is(notNullValue())); assertThat(uris.size(), is(2)); assertThat(uris.get(0), is(uriFirst)); assertThat(uris.get(1), is(uriSecond)); }