@Test
public void computeScrollDeltaToGetChildRectOnScreen_marginRespectedToMakeRoomForFadingEdge() {

    setup(200);
    setChildMargins(0, 1);
    mNestedScrollView.setVerticalFadingEdgeEnabled(true);
    mNestedScrollView.setFadingEdgeLength(25);
    measureAndLayout(100);
    Rect rect = new Rect(0, 175, 100, 200);
    int actual = mNestedScrollView.computeScrollDeltaToGetChildRectOnScreen(rect);
    assertThat(actual, is(101));
}