ShoppingCartPresenter extends PresenterWidget<ShoppingCartPresenter.MyView> implements ShoppingCartUiHandlers, ShoppingCartChangedEventHandler, ShoppingCartQuantityUpdatedEventHandler,
        CheckoutEventHandler, EmptyCartEventHandler { @Override public void onCloseClicked() { CloseShoppingCartEvent.fire(this); } @Inject  ShoppingCartPresenter(
            EventBus eventBus,
            MyView view,
            CurrentOrder currentOrder,
            CartItemsPresenter cartItemsPresenter); @Override void onShoppingCartChanged(ShoppingCartChangedEvent event); @Override void onShoppingCartQuantityChanged(ShoppingCartQuantityChangeEvent event); @Override void onCheckoutClicked(); @Override void onEmptyCart(EmptyCartEvent event); @Override void onCheckout(CheckoutEvent event); @Override void onCloseClicked();  }
@Test public void onClose_fireCloseShoppingCartEvent() { presenter.onCloseClicked(); verify(eventBus).fireEventFromSource(isA(CloseShoppingCartEvent.class), same(presenter)); }