public void testOfInt() throws Throwable {
    Object object = mActivity.view.newBall;
    String property = "backgroundColor";
    int startColor = mActivity.view.RED;
    int endColor = mActivity.view.BLUE;

    ObjectAnimator colorAnimator = ObjectAnimator.ofInt(object, property, startColor, endColor);
    colorAnimator.setDuration(1000);
    colorAnimator.setEvaluator(new ArgbEvaluator());
    colorAnimator.setRepeatCount(1);
    colorAnimator.setRepeatMode(ValueAnimator.REVERSE);
    colorAnimator.start();
    startAnimation(mObjectAnimator, colorAnimator);
    Thread.sleep(100);
    Integer i = (Integer) colorAnimator.getAnimatedValue();
    // We are going from less negative value to a more negative value
    assertTrue(i.intValue() <= startColor);
    assertTrue(endColor <= i.intValue());
  }