### Question:
Bill implements Serializable { @Override public String toString() { return "Bill{" + "version=" + version + ", amount=" + amount + ", currency='" + currency + '\'' + ", account='" + account + '\'' + ", creditor=" + creditor + ", referenceType='" + referenceType + '\'' + ", reference='" + reference + '\'' + ", debtor=" + debtor + ", unstructuredMessage='" + unstructuredMessage + '\'' + ", billInformation='" + billInformation + '\'' + ", alternativeSchemes=" + Arrays.toString(alternativeSchemes) + ", format=" + format + '}'; }  Version getVersion(); void setVersion(Version version); BigDecimal getAmount(); Double getAmountAsDouble(); void setAmount(BigDecimal amount); void setAmountFromDouble(Double amount); String getCurrency(); void setCurrency(String currency); String getAccount(); void setAccount(String account); Address getCreditor(); void setCreditor(Address creditor); String getReferenceType(); void setReferenceType(String referenceType); void updateReferenceType(); String getReference(); void setReference(String reference); void createAndSetCreditorReference(String rawReference); void createAndSetQRReference(String rawReference); Address getDebtor(); void setDebtor(Address debtor); String getUnstructuredMessage(); void setUnstructuredMessage(String unstructuredMessage); String getBillInformation(); void setBillInformation(String billInformation); AlternativeScheme[] getAlternativeSchemes(); void setAlternativeSchemes(AlternativeScheme[] alternativeSchemes); BillFormat getFormat(); void setFormat(BillFormat format); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String REFERENCE_TYPE_NO_REF; static final String REFERENCE_TYPE_QR_REF; static final String REFERENCE_TYPE_CRED_REF; }### Answer:
@Test void testToString() { Bill bill = createBill(); String text = bill.toString(); assertEquals("Bill{version=V2_0, amount=100.30, currency='CHF', account='CH12343345345', creditor=Address{type=STRUCTURED, name='Vision Consult GmbH', addressLine1='null', addressLine2='null', street='Hintergasse', houseNo='7b', postalCode='8400', town='Winterthur', countryCode='CH'}, referenceType='NON', reference='null', debtor=Address{type=STRUCTURED, name='Vision Consult GmbH', addressLine1='null', addressLine2='null', street='Hintergasse', houseNo='7b', postalCode='8400', town='Winterthur', countryCode='CH'}, unstructuredMessage='null', billInformation='null', alternativeSchemes=null, format=BillFormat{outputSize=QR_BILL_ONLY, language=EN, separatorType=DASHED_LINE_WITH_SCISSORS, fontFamily='Helvetica,Arial,\"Liberation Sans\"', graphicsFormat=SVG, resolution=144}}", text); }