### Question:
ChangeImageTransform extends Transition { private static Matrix fitXYMatrix(ImageView view) { final Drawable image = view.getDrawable(); final Matrix matrix = new Matrix(); matrix.postScale( ((float) view.getWidth()) / image.getIntrinsicWidth(), ((float) view.getHeight()) / image.getIntrinsicHeight()); return matrix; } ChangeImageTransform();  ChangeImageTransform(Context context, AttributeSet attrs); @Override void captureStartValues(@NonNull TransitionValues transitionValues); @Override void captureEndValues(@NonNull TransitionValues transitionValues); @Override String[] getTransitionProperties(); @Override Animator createAnimator(@NonNull ViewGroup sceneRoot, TransitionValues startValues,
            final TransitionValues endValues);  }### Answer:
@Test public void testCenterToFitXY() throws Throwable { transformImage(ImageView.ScaleType.CENTER, ImageView.ScaleType.FIT_XY); verifyMatrixMatches(centerMatrix(), mStartMatrix); verifyMatrixMatches(fitXYMatrix(), mEndMatrix); }