ToastBuilder { public ToastBuilder customViewMessageViewId(int customViewMessageViewId) { this.customViewMessageViewId = customViewMessageViewId; return this; } ToastBuilder(Context context); ToastBuilder customView(View customView); ToastBuilder customViewMessageViewId(int customViewMessageViewId); ToastBuilder message(CharSequence message); ToastBuilder message(@StringRes int messageResId); ToastBuilder messageTextColor(@ColorInt int messageTextColor); ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId); ToastBuilder duration(int duration); ToastBuilder gravity(int gravity); ToastBuilder gravityOffsetX(int gravityOffsetX); ToastBuilder gravityOffsetY(int gravityOffsetY); @SuppressLint("ShowToast") Toast build();  }
@Test public void whenCustomViewMessageViewId_thenCustomViewMessageViewIdSet() { createBuilder(); builderUnderTest.customViewMessageViewId(R.id.snackbarbuilder_icon); assertThat(builderUnderTest.customViewMessageViewId).isEqualTo(R.id.snackbarbuilder_icon); }