ProductPresenter extends PresenterWidget<ProductPresenter.MyView> implements BrandChangedEventHandler { @Override protected void onBind() { addVisibleHandler(BrandChangedEvent.TYPE, this); getView().setStyle(productWidgetType); setInSlot(SLOT_PRICE, priceWidgetFactory.create(productDto)); } @Inject  ProductPresenter(
            EventBus eventBus,
            MyView view,
            PriceWidgetFactory priceWidgetFactory,
            CurrentBrand currentBrand,
            @Assisted ProductWidgetType productWidgetType,
            @Assisted ProductDto productDto); @Override void onBrandChanged(BrandChangedEvent event);  }
@Test public void onBind_putsCorrectStyleInView() { presenter.onBind(); verify(view).setStyle(productWidgetType); }