TextBuilder extends OptionalExtraBuilder<TextBuilder> implements AcceptsExtraText<TextBuilder>, Buildable { @Override protected TextBuilder getSelf() { return this; } 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 getSelfShouldReturnThis() { TextBuilder returnedSelf = textBuilder.getSelf(); assertThat(returnedSelf).isSameAs(textBuilder); }