/*
  * (non-Javadoc)
  *
  * @see
  * de.hybris.platform.financialacceleratorstorefront.populators.InsuranceDataPopulatorStrategy#processInsuranceQuoteData
  * (de.hybris.platform.commercefacades.quotation.InsuranceQuoteData, java.util.Map)
  */
 @Override
 public void processInsuranceQuoteData(
     final InsuranceQuoteData quoteData, final Map<String, Object> infoMap) {
   // We use this to set values initially and the others to conditionally change the values
   quoteData.setQuoteType(QuoteType.EVENT);
   quoteData.setQuoteTitle(CHECKOUT_CART_TITLE_EVENT);
 }
  @Before
  public void setup() {
    insuranceCart2QuoteListingPopulator = new InsuranceCart2QuoteListingPopulator();
    MockitoAnnotations.initMocks(this);

    quoteListingData = new InsuranceQuoteListingData();
    cartData = new CartData();
    final PriceData priceData = new PriceData();
    priceData.setFormattedValue(testFormattedValue);
    cartData.setTotalPrice(priceData);
    cartData.setCode(testCartCode);

    final List<OrderEntryData> entries = new ArrayList<>();
    final OrderEntryData orderEntryData = new OrderEntryData();
    final ProductData productData = new ProductData();
    productData.setName(testProductName);
    productData.setImages(imageDataList);
    orderEntryData.setProduct(productData);
    entries.add(orderEntryData);
    cartData.setEntries(entries);
    final SubscriptionPricePlanData pricePlanData = new SubscriptionPricePlanData();
    productData.setPrice(pricePlanData);

    quoteData = new InsuranceQuoteData();
    cartData.setInsuranceQuote(quoteData);
    quoteData.setFormattedExpiryDate(testQuoteFormattedExpiryDate);
  }
  @Test
  public void testPopulate_and_with_quoteId() {
    final String testQuoteId = "12345";
    quoteData.setQuoteId(testQuoteId);
    insuranceCart2QuoteListingPopulator.populate(cartData, quoteListingData);

    Assert.assertEquals(testQuoteId, quoteListingData.getQuoteNumber());
  }