### Question:
SwicoBillInformation { public void setVatRateDetails(List<RateDetail> vatRateDetails) { this.vatRateDetails = vatRateDetails; }  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 setVatRateDetails() { SwicoBillInformation billInformation = new SwicoBillInformation(); billInformation.setVatRateDetails(Arrays.asList( new RateDetail(BigDecimal.valueOf(8, 0), BigDecimal.valueOf(1000, 0)), new RateDetail(BigDecimal.valueOf(25, 1), BigDecimal.valueOf(400, 0)) )); assertEquals(2, billInformation.getVatRateDetails().size()); assertEquals(8.0, billInformation.getVatRateDetails().get(0).getRate().doubleValue()); assertEquals(400.0, billInformation.getVatRateDetails().get(1).getAmount().doubleValue()); }