ShareIntentNoBuilder extends OptionalExtraBuilder<ShareIntentNoBuilder> implements AcceptsExtraText<TextBuilder>, AcceptsExtraStream<StreamBuilder> { public TextAndStreamNoBuilder ignoreSpecification() { return new TextAndStreamNoBuilder(builder); } ShareIntentNoBuilder(ShareIntentBuilder builder); TextAndStreamNoBuilder ignoreSpecification(); @NonNull TextBuilder text(@NonNull String text); @NonNull TextBuilder text(@NonNull Collection<String> texts); @NonNull StreamBuilder stream(@NonNull Uri stream); @NonNull StreamBuilder stream(@NonNull Uri stream, @NonNull String type);  }
@Test public void ignoreSpecificationShouldCreateTextAndStreamNoBuilder() { TextAndStreamNoBuilder returnedBuilder = shareIntentNoBuilder.ignoreSpecification(); verify(builder).ignoreSpecification(); assertThat(returnedBuilder.builder).isSameAs(builder); }