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