SimpleChromeCustomTabsIntentBuilder { public SimpleChromeCustomTabsIntentBuilder showingTitle() { composers.add(new ShowTitleComposer()); return this; } SimpleChromeCustomTabsIntentBuilder(Connection connection, List<Composer> composers); static SimpleChromeCustomTabsIntentBuilder newInstance(Connection connection); SimpleChromeCustomTabsIntentBuilder withToolbarColor(@ColorInt int color); SimpleChromeCustomTabsIntentBuilder withUrlBarHiding(); SimpleChromeCustomTabsIntentBuilder withMenuItem(String label, PendingIntent pendingIntent); SimpleChromeCustomTabsIntentBuilder withDefaultShareMenuItem(); SimpleChromeCustomTabsIntentBuilder withActionButton(Bitmap icon, String description, PendingIntent pendingIntent, boolean shouldTint); SimpleChromeCustomTabsIntentBuilder withCloseButtonIcon(Bitmap icon); SimpleChromeCustomTabsIntentBuilder withExitAnimations(Context context, @AnimRes int enterResId, @AnimRes int exitResId); SimpleChromeCustomTabsIntentBuilder withStartAnimations(Context context, @AnimRes int enterResId, @AnimRes int exitResId); SimpleChromeCustomTabsIntentBuilder showingTitle(); CustomTabsIntent createIntent();  }
@Test public void givenShowingTitleIsSet_thenShowingTitleComposerIsAdded() { simpleChromeCustomTabsIntentBuilder.showingTitle(); verify(mockComposers).add(any(ShowTitleComposer.class)); }