### Question:
WelcomeAdapter extends FragmentStatePagerAdapter { @Override public int getCount() { return fragments.size(); } @Inject  WelcomeAdapter(@Named(BaseActivityModule.ACTIVITY_FRAGMENT_MANAGER) FragmentManager fm, RequirementsChecker requirementsChecker); @Override Fragment getItem(final int position); @Override int getCount();  }### Answer:
@Test public void getCount() throws Exception { setFinalStatic(Build.VERSION.class.getField("SDK_INT"), androidVersion); when(requirementsChecker.isInitialSetupCheckPassed()).thenReturn(initialSetupCheckPassed); when(requirementsChecker.isPlayCheckPassed()).thenReturn(playCheckPassed); when(requirementsChecker.isPermissionCheckPassed()).thenReturn(permissionCheckPassed); welcomeAdapter.setupFragments(new IntroFragment(), new VersionFragment(), new PlayFragment(), new PermissionFragment(), new FinishFragment()); assertEquals(expectedFragments, welcomeAdapter.getCount()); }