ShoppingCartPresenter extends PresenterWidget<ShoppingCartPresenter.MyView> implements ShoppingCartUiHandlers, ShoppingCartChangedEventHandler, ShoppingCartQuantityUpdatedEventHandler,
        CheckoutEventHandler, EmptyCartEventHandler { @Override public void onShoppingCartQuantityChanged(ShoppingCartQuantityChangeEvent event) { getView().updateItemNumber(currentOrder.getSize()); } @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 onCartQuantityChange_updateCartTooltip() { given(currentOrder.getSize()).willReturn(ORDER_SIZE); presenter.onShoppingCartQuantityChanged(mock(ShoppingCartQuantityChangeEvent.class)); verify(view).updateItemNumber(ORDER_SIZE); }