ArgbEvaluatorCompat { public static ArgbEvaluatorCompat newInstance() { return newInstance(Build.VERSION.SDK_INT); }  static ArgbEvaluatorCompat newInstance(); abstract Object evaluate(float fraction, Object startValue, Object endValue);  }
@Test public void givenNoAndroidVersionThenALegacyArgbEvaluatorIsReturned() { ArgbEvaluatorCompat argbEvaluator = ArgbEvaluatorCompat.newInstance(); assertThat(argbEvaluator).isInstanceOf(ArgbEvaluatorCompat.ArgbEvaluatorLegacy.class); }
@Test public void givenAPostHoneycombAndroidVersionThenAHoneycombArgbEvaluatorIsReturned() { ArgbEvaluatorCompat argbEvaluator = ArgbEvaluatorCompat.newInstance(22); assertThat(argbEvaluator).isInstanceOf(ArgbEvaluatorCompat.ArgbEvaluatorHoneycomb.class); }
@Test public void givenAPreHoneycombAndroidVersionThenALegacyArgbEvaluatorIsReturned() { ArgbEvaluatorCompat argbEvaluator = ArgbEvaluatorCompat.newInstance(10); assertThat(argbEvaluator).isInstanceOf(ArgbEvaluatorCompat.ArgbEvaluatorLegacy.class); }