@Override
  public final void getSize(@NonNull SizeReadyCallback cb) {
    sizeDeterminer.getSize(cb);
  }
@Test
  public void testCallbackIsNotCalledTwiceIfPreDrawFiresTwice() {
    activity.visible();
    target.getSize(cb);

    LayoutParams layoutParams = new FrameLayout.LayoutParams(1234, 4123);
    view.setLayoutParams(layoutParams);
    view.requestLayout();
    view.getViewTreeObserver().dispatchOnPreDraw();
    view.getViewTreeObserver().dispatchOnPreDraw();

    verify(cb, times(1)).onSizeReady(anyInt(), anyInt());
  }