TextBuilder extends OptionalExtraBuilder<TextBuilder> implements AcceptsExtraText<TextBuilder>, Buildable { @NonNull @Override public Intent build() { return builder.build(); } 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 buildShouldCallThroughToShareIntentBuilder() { Intent intent = textBuilder.build(); verify(builder).build(); assertThat(intent).isSameAs(dummyIntent); }