@Test
public void computeVerticalScrollRange_takesAccountOfMargin() {

    setup(200);
    setChildMargins(20, 30);
    measureAndLayout(100);
    int actual = mNestedScrollView.computeVerticalScrollRange();
    assertThat(actual, is(250));
}