@Test
public void onMeasure_fillViewPortEnabledChildSmallButWithMarginBig_childMeasuredCorrectly() {

    setup(50);
    setChildMargins(25, 25);
    mNestedScrollView.setFillViewport(true);
    measure(100);
    assertThat(mChild.getMeasuredHeight(), is(50));
}