@Test public void testOnMoveXBiggerThanMidpoint() {

  // given
  DisplayMetrics displayMetricsMock = mock(DisplayMetrics.class);
  Resources resourcesMock = mock(Resources.class);
  doReturn(contextMock).when(buttonMock).getContext();
  doReturn(resourcesMock).when(contextMock).getResources();
  doReturn(displayMetricsMock).when(resourcesMock).getDisplayMetrics();
  displayMetricsMock.widthPixels = 400;
  int x = 250;
  int midpoint = displayMetricsMock.widthPixels / 2;
  int xDelta = x - midpoint;
  int xTransformed = Math.abs(xDelta * 100 / midpoint);
  int bottomPadding = buttonBottomPaddingTest - (xTransformed / 5);
  // when
  removeView.onMove(x, 200);
  // then
  verify(buttonMock).setPadding(xTransformed, 0, 0, bottomPadding);
}