TextAndStreamBuilder extends OptionalExtraBuilder<TextAndStreamBuilder> implements AcceptsSingleExtraText<StreamBuilder>, AcceptsExtraStream<TextAndStreamBuilder>, Buildable { @Override public void share() { builder.share(); } TextAndStreamBuilder(ShareIntentBuilder builder); @NonNull @Override TextAndStreamBuilder stream(@NonNull Uri stream); @NonNull @Override TextAndStreamBuilder stream(@NonNull Uri stream, @NonNull String type); @NonNull @Override StreamBuilder text(@NonNull String text); @NonNull @Override Intent build(); @Override void share(); @Override void share(@NonNull CharSequence title);  }
@Test public void shareShouldCallThroughToShareIntentBuilder() { textAndStreamBuilder.share(); verify(builder).share(); }
@Test public void shareWithTitleShouldCallThroughToShareIntentBuilder() { textAndStreamBuilder.share(DEMO_TEXT); verify(builder).share(DEMO_TEXT); }