EmailIntent extends BaseIntent<EmailIntent> { public EmailIntent subject(@NonNull final CharSequence subject) { this.subject = subject; return this; }  EmailIntent to(@NonNull final String address); EmailIntent to(@NonNull final String... addresses); EmailIntent to(@Nullable final List<String> addresses); @NonNull List<String> addresses(); EmailIntent cc(@NonNull final String address); EmailIntent cc(@NonNull final String... addresses); EmailIntent cc(@Nullable final List<String> addresses); @NonNull List<String> ccAddresses(); EmailIntent bcc(@NonNull final String address); EmailIntent bcc(@NonNull final String... addresses); EmailIntent bcc(@Nullable final List<String> addresses); @NonNull List<String> bccAddresses(); EmailIntent subject(@NonNull final CharSequence subject); @NonNull CharSequence subject(); EmailIntent message(@NonNull final CharSequence message); @NonNull CharSequence message(); @Nullable static Uri createUri(@NonNull final List<String> addresses); static final String URI_SCHEME; static final Matcher EMAIL_MATCHER; }
@Test public void testSubject() { final EmailIntent intent = new EmailIntent(); intent.subject("Email subject"); assertThat(intent.subject().toString(), is("Email subject")); }