ShareIntent extends BaseIntent<ShareIntent> { public ShareIntent content(@Nullable final CharSequence text) { this.content = text; return this; }  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 testBuildWithTextContent() { final ShareIntent shareIntent = new ShareIntent().content("Text to share."); final Intent intent = shareIntent.build(context); assertThat(intent.getAction(), is(Intent.ACTION_SEND)); assertThat(intent.getData(), is(nullValue())); assertThat(intent.getStringExtra(Intent.EXTRA_TEXT), is("Text to share.")); }
@Test public void testContent() { final ShareIntent intent = new ShareIntent(); intent.content("Sharing content."); assertThat(intent.content(), is((CharSequence) "Sharing content.")); }