### Question:
IdGeneratorEditionDialog implements PropertyEditionPopup { @Override public Widget asWidget() { return view.asWidget(); } @Inject  IdGeneratorEditionDialog(View view); @Override Widget asWidget(); @Override void show(); @Override void setOkCommand(Command okCommand); @Override void setProperty(PropertyEditorFieldInfo property); @Override String getStringValue(); @Override void setStringValue(String value);  }### Answer:
@Test public void testAsWidget() { Widget widget = mock(Widget.class); when(view.asWidget()).thenReturn(widget); assertEquals(widget, dialog.asWidget()); }