DefaultWorldpayCartService implements WorldpayCartService { @Override public CartModel findCartByWorldpayOrderCode(final String worldpayOrderCode) { return worldpayCartDao.findCartByWorldpayOrderCode(worldpayOrderCode); }  @Override void resetDeclineCodeAndShopperBankOnCart(final String shopperBankCode); @Override void setWorldpayDeclineCodeOnCart(String worldpayOrderCode, String declineCode); @Override CartModel findCartByWorldpayOrderCode(final String worldpayOrderCode); @Required void setWorldpayCartDao(final WorldpayCartDao worldpayCartDao); @Required void setCartService(final CartService cartService);  }
@Test public void findCartsByWorldpayOrderCodeShouldUseWorldpay() { final CartModel result = testObj.findCartByWorldpayOrderCode(WORLDPAY_ORDER_CODE); verify(worldpayCartDaoMock).findCartByWorldpayOrderCode(WORLDPAY_ORDER_CODE); assertEquals(cartModelMock, result); }