### Question:
ScreenPanelViewImpl implements ScreenPanelView { @Override public Widget asWidget() { return panel; } ScreenPanelViewImpl();   ScreenPanelViewImpl(final ResizeFlowPanel panel); @Override ScreenPanelView setWidget(final IsWidget widget); @Override ScreenPanelView clear(); @Override Widget asWidget();  }### Answer:
@Test public void testOnResize() { when(parent.getOffsetWidth()).thenReturn(WIDTH); when(parent.getOffsetHeight()).thenReturn(HEIGHT); ((ResizeFlowPanel) view.asWidget()).onResize(); verify(panel).setPixelSize(WIDTH, HEIGHT); verify(panel).doSuperOnResize(); }