DisplayerSubtypeSelector implements IsWidget { void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); } @Inject  DisplayerSubtypeSelector(View view,
                                    RendererManager rendererManager,
                                    Event<DisplayerSubtypeSelectedEvent> selectEvent); @Override Widget asWidget(); DisplayerSubType getSelectedSubtype(); void init(DisplayerType type, DisplayerSubType selectedSubType);  }
@Test public void testOnSelect() { presenter.onSelect(LINE); assertEquals(presenter.getSelectedSubtype(), LINE); verify(subtypeSelectedEvent).fire(any(DisplayerSubtypeSelectedEvent.class)); }