### Question:
SwicoBillInformation { public void setPaymentConditions(List<PaymentCondition> paymentConditions) { this.paymentConditions = paymentConditions; }  String getInvoiceNumber(); void setInvoiceNumber(String invoiceNumber); LocalDate getInvoiceDate(); void setInvoiceDate(LocalDate invoiceDate); String getCustomerReference(); void setCustomerReference(String customerReference); String getVatNumber(); void setVatNumber(String vatNumber); LocalDate getVatDate(); void setVatDate(LocalDate vatDate); LocalDate getVatStartDate(); void setVatStartDate(LocalDate vatStartDate); LocalDate getVatEndDate(); void setVatEndDate(LocalDate vatEndDate); BigDecimal getVatRate(); void setVatRate(BigDecimal vatRate); List<RateDetail> getVatRateDetails(); void setVatRateDetails(List<RateDetail> vatRateDetails); List<RateDetail> getVatImportTaxes(); void setVatImportTaxes(List<RateDetail> vatImportTaxes); List<PaymentCondition> getPaymentConditions(); void setPaymentConditions(List<PaymentCondition> paymentConditions); LocalDate getDueDate(); String encodeAsText(); static SwicoBillInformation decodeText(String text); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void setPaymentConditions() { SwicoBillInformation billInformation = new SwicoBillInformation(); billInformation.setPaymentConditions(Arrays.asList( new PaymentCondition(BigDecimal.valueOf(2.0), 10), new PaymentCondition(BigDecimal.ZERO, 30) )); assertEquals(2, billInformation.getPaymentConditions().size()); assertEquals(2.0, billInformation.getPaymentConditions().get(0).getDiscount().doubleValue()); assertEquals(30, billInformation.getPaymentConditions().get(1).getDays()); }