### Question:
ZoomLevelSelector implements IsWidget { @Override public Widget asWidget() { return view.asWidget(); } @Inject  ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel); ZoomLevelSelector onReset(final Command onReset); ZoomLevelSelector setText(final String text); ZoomLevelSelector dropUp(); ZoomLevelSelector add(final String text,
                                 final Command onClick); ZoomLevelSelector clear(); ZoomLevelSelector setEnabled(boolean enabled); @Override Widget asWidget(); @PreDestroy void destroy();  }### Answer:
@Test public void testAsWidget() { Widget w = mock(Widget.class); when(view.asWidget()).thenReturn(w); assertEquals(w, tested.asWidget()); }