WelcomeUtils { static boolean isIndexBeforeLastPage(int index, int lastPageIndex, boolean isRtl) { return isRtl ? index > lastPageIndex : index < lastPageIndex; }  static String getKey(Class<? extends WelcomeActivity> activityClass); static void applyParallaxEffect(View view, boolean recursive, int offsetPixels, float startParallaxFactor, float parallaxInterval);  }
@Test public void testIsIndexBeforeLastPage() { assertTrue(WelcomeUtils.isIndexBeforeLastPage(1, 3, false)); assertFalse(WelcomeUtils.isIndexBeforeLastPage(3, 3, false)); assertFalse(WelcomeUtils.isIndexBeforeLastPage(4, 3, false)); assertTrue(WelcomeUtils.isIndexBeforeLastPage(2, 0, true)); assertFalse(WelcomeUtils.isIndexBeforeLastPage(0, 0, true)); assertFalse(WelcomeUtils.isIndexBeforeLastPage(0, 1, true)); }