ApplicationPresenter extends Presenter<ApplicationPresenter.MyView, ApplicationPresenter.MyProxy> implements BrandChangedEventHandler, NavigationHandler, ShoppingCartChangedEventHandler,
        CloseShoppingCartEventHandler, ShoppingCartQuantityUpdatedEventHandler, PageScrollEventHandler { @Override public void onCloseShoppingCart(CloseShoppingCartEvent event) { getView().closeShoppingCart(); } @Inject  ApplicationPresenter(
            EventBus eventBus,
            MyView view,
            MyProxy proxy,
            SidePanelPresenter sidePanelPresenter,
            CurrentOrder currentOrder,
            ShoppingCartLocalStorage shoppingCartLocalStorage); @Override void onCloseShoppingCart(CloseShoppingCartEvent event); @Override void onShoppingCartQuantityChanged(ShoppingCartQuantityChangeEvent event); @Override void onPageScrollEnabled(PageScrollEvent event); @Override void onPageScrollDisabled(PageScrollEvent event); @ProxyEvent @Override void onBrandChanged(BrandChangedEvent event); @Override void onShoppingCartChanged(ShoppingCartChangedEvent event); @ProxyEvent @Override void onNavigation(NavigationEvent navigationEvent); static final NestedSlot SLOT_MAIN; static final SingleSlot SLOT_SIDE_PANEL; }
@Test public void onCloseShoppingCart_closeShoppingCart() { presenter.onCloseShoppingCart(mock(CloseShoppingCartEvent.class)); verify(view).closeShoppingCart(); }