PKBarcode implements Cloneable, Serializable { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } protected  PKBarcode(); String getMessage(); PKBarcodeFormat getFormat(); String getMessageEncoding(); String getAltText(); @Override String toString(); static PKBarcodeBuilder builder(); static PKBarcodeBuilder builder(PKBarcode barcode);  }
@Test public void test_toString() { PKBarcode barcode = builder.build(); assertThat(barcode.toString()) .contains(MESSAGE) .contains(ALT_TEXT) .contains(CHARSET_NAME); }