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

    int width = 1;
    int height = 2;
    LayoutParams layoutParams = new FrameLayout.LayoutParams(width, height);
    view.setLayoutParams(layoutParams);
    ViewTreeObserver vto = view.getViewTreeObserver();
    view.requestLayout();
    activity.visible();
    assertFalse(vto.isAlive());
    vto.dispatchOnPreDraw();

    verify(cb).onSizeReady(eq(width), eq(height));
  }