DefaultWorldpayApplePayPaymentCheckoutFacade implements WorldpayApplePayPaymentCheckoutFacade { @Override public ValidateMerchantRequestDTO getValidateMerchantRequestDTO() { final ApplePayConfigData applePaySettings = worldpayMerchantConfigDataFacade.getCurrentSiteMerchantConfigData().getApplePaySettings(); return applePayConfigDataToValidateMerchantRequestDTOPopulatingConverter.convert(applePaySettings); }  @Override void saveBillingAddresses(final ApplePayPaymentContact billingContact); @Override void setRegion(final AddressData addressData, final ApplePayPaymentContact address); @Override ValidateMerchantRequestDTO getValidateMerchantRequestDTO(); @Required void setWorldpayPaymentCheckoutFacade(WorldpayPaymentCheckoutFacade worldpayPaymentCheckoutFacade); @Required void setI18NFacade(I18NFacade i18NFacade); @Required void setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy); @Required void setUserFacade(UserFacade userFacade); @Required void setWorldpayMerchantConfigDataFacade(WorldpayMerchantConfigDataFacade worldpayMerchantConfigDataFacade); @Required void setApplePayConfigDataToValidateMerchantRequestDTOPopulatingConverter(Converter<ApplePayConfigData, ValidateMerchantRequestDTO> applePayConfigDataToValidateMerchantRequestDTOPopulatingConverter);  }
@Test public void testGetValidateMerchantRequestDTO() { when(worldpayMerchantConfigDataFacadeMock.getCurrentSiteMerchantConfigData().getApplePaySettings()).thenReturn(applePayConfigDataMock); testObj.getValidateMerchantRequestDTO(); verify(applePayConfigDataToValidateMerchantRequestDTOConverterMock).convert(applePayConfigDataMock); }