### Question:
FeedPresenterFragment extends ViewPagerPresenterFragment implements InsightInfoFragment.ParentProvider { @VisibleForTesting public void bindVoiceSettings(final boolean hasVoice) { if (hasVoice) { presenterView.unlockViewPager(this); } else { presenterView.lockViewPager(getStartingItemPosition()); } }  @Override void onCreate(final Bundle savedInstanceState); @Override void onViewCreated(final View view,
                              final Bundle savedInstanceState); @VisibleForTesting void bindVoiceSettings(final boolean hasVoice); @Nullable @Override InsightInfoFragment.Parent provideInsightInfoParent();  }### Answer:
@Test public void bindVoiceSettingsTest() { spyOnPresenterView(); fragment.bindVoiceSettings(true); Mockito.verify(fragment.presenterView).unlockViewPager(Mockito.eq(fragment)); fragment.bindVoiceSettings(false); Mockito.verify(fragment.presenterView).lockViewPager(Mockito.eq(fragment.getStartingItemPosition())); }