private void testConfigureBounds(
      Rect viewBounds,
      int underlyingWidth,
      int underlyingHeight,
      ScaleType scaleType,
      @Nullable PointF focusPoint,
      Matrix expectedMatrix) {
    mScaleTypeDrawable.setScaleType(scaleType);
    if (focusPoint != null) {
      mScaleTypeDrawable.setFocusPoint(focusPoint);
    }
    mScaleTypeDrawable.setBounds(viewBounds);
    reset(mUnderlyingDrawable);
    when(mUnderlyingDrawable.getIntrinsicWidth()).thenReturn(underlyingWidth);
    when(mUnderlyingDrawable.getIntrinsicHeight()).thenReturn(underlyingHeight);
    mScaleTypeDrawable.configureBounds();
    verify(mUnderlyingDrawable).getIntrinsicWidth();
    verify(mUnderlyingDrawable).getIntrinsicHeight();
    verify(mUnderlyingDrawable).setBounds(0, 0, underlyingWidth, underlyingHeight);
    AndroidGraphicsTestUtils.assertEquals(expectedMatrix, mScaleTypeDrawable.mDrawMatrix);
    verifyNoMoreInteractions(mUnderlyingDrawable);
  }
Underlying drawable's aspect ratio is smaller than view's, so it has to be slided vertically
after scaling. Focus point is too much bottom, so it cannot be completely centered. Bottom-most
part of the image is displayed.
drawee/src/test/java/com/facebook/drawee/drawable/ScaleTypeDrawableTest.java