### Question:
DMNGridPanelContainer extends SimplePanel implements RequiresResize { @Override public void setWidget(final IsWidget w) { if (w instanceof RequiresResize) { resizableContent = Optional.of((RequiresResize) w); } super.setWidget(w); }  @Override void setWidget(final IsWidget w); @Override void setWidget(final Widget w); @Override void onResize();  }### Answer:
@Test public void testSetWidgetNotResizableAndResize() { final Widget widget = mock(Widget.class); container.setWidget(widget); verifyNotResizableInteractions(widget); }
@Test public void testSetIsWidgetNotResizableAndResize() { final IsWidget widget = mock(IsWidget.class); container.setWidget(widget); verifyNotResizableInteractions(widget); }
@Test public void testSetWidgetIsResizableAndResize() { final ResizeComposite widget = mock(ResizeComposite.class); container.setWidget(widget); verifyResizableInteractions(widget); }
@Test public void testSetWidgetIsResizableAndResizeWithZeroWidth() { when(containerParentElement.getOffsetWidth()).thenReturn(0); final ResizeComposite widget = mock(ResizeComposite.class); container.setWidget(widget); verifyResizableInteractionsWithZeroDimension(widget); }
@Test public void testSetWidgetIsResizableAndResizeWithZeroHeight() { when(containerParentElement.getOffsetHeight()).thenReturn(0); final ResizeComposite widget = mock(ResizeComposite.class); container.setWidget(widget); verifyResizableInteractionsWithZeroDimension(widget); }