TextAndStreamNoBuilder extends OptionalExtraBuilder<TextAndStreamNoBuilder> implements AcceptsSingleExtraText<StreamBuilder>, AcceptsExtraStream<TextAndStreamBuilder> { @Override protected TextAndStreamNoBuilder getSelf() { return this; } TextAndStreamNoBuilder(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);  }
@Test public void getSelfShouldReturnThis() { TextAndStreamNoBuilder returnedSelf = textAndStreamNoBuilder.getSelf(); assertThat(returnedSelf).isSameAs(textAndStreamNoBuilder); }