AbstractWorldpayPaymentMethodCheckoutStepController extends AbstractCheckoutStepController { @ModelAttribute("billingCountries") public Collection<CountryData> getBillingCountries() { return getCheckoutFacade().getBillingCountries(); }  @ModelAttribute("billingCountries") Collection<CountryData> getBillingCountries(); @ModelAttribute("cardTypes") Collection<CardTypeData> getCardTypes(); @ModelAttribute("months") List<SelectOption> getMonths(); @ModelAttribute("expiryYears") List<SelectOption> getExpiryYears(); WorldpayPaymentCheckoutFacade getWorldpayPaymentCheckoutFacade(); WorldpayHostedOrderFacade getWorldpayHostedOrderFacade(); WorldpayAdditionalInfoFacade getWorldpayAdditionalInfoFacade(); WorldpayMerchantConfigDataFacade getWorldpayMerchantConfigDataFacade();  }
@Test public void shouldPopulateModelWithBillingCountries() { when(checkoutFacadeMock.getBillingCountries()).thenReturn(billingCountries); final Collection<CountryData> result = testObj.getBillingCountries(); assertEquals(billingCountries, result); }