ProductPresenter extends PresenterWidget<ProductPresenter.MyView> implements BrandChangedEventHandler { @Override protected void onReveal() { productDto.setBrand(currentBrand.get()); getView().setProduct(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 onReveal_styleViewBasedOnBrand() { given(currentBrand.get()).willReturn(BRAND); presenter.onReveal(); Brand actualBrand = getActualBrandPassedToView(); assertThat(actualBrand).isEqualTo(BRAND); }