TextBuilder extends OptionalExtraBuilder<TextBuilder> implements AcceptsExtraText<TextBuilder>, Buildable { @Override public void share() { builder.share(); } TextBuilder(ShareIntentBuilder builder); @NonNull @Override TextBuilder text(@NonNull String text); @NonNull @Override TextBuilder text(@NonNull Collection<String> texts); @NonNull @Override Intent build(); @Override void share(); @Override void share(@NonNull CharSequence title);  }
@Test public void shareShouldCallThroughToShareIntentBuilder() { textBuilder.share(); verify(builder).share(); }
@Test public void shareWithTitleShouldCallThroughToShareIntentBuilder() { textBuilder.share(DEMO_TEXT); verify(builder).share(DEMO_TEXT); }