DisplayerTypeSelector implements IsWidget { public void init(DisplayerType selectedType, DisplayerSubType selectedSubtype) { this.selectedType = selectedType; view.select(selectedType); subtypeSelector.init(selectedType, selectedSubtype); } @Inject  DisplayerTypeSelector(View view,
                                 DisplayerSubtypeSelector subtypeSelector,
                                 Event<DisplayerTypeSelectedEvent> typeSelectedEvent); @Override Widget asWidget(); DisplayerType getSelectedType(); DisplayerSubType getSelectedSubType(); DisplayerSubtypeSelector getSubtypeSelector(); void init(DisplayerType selectedType, DisplayerSubType selectedSubtype);  }
@Test public void testInitialization() { presenter.init(LINECHART, SMOOTH); verify(typeView).select(LINECHART); }