CoinURI { @Override public String toString() { StringBuilder builder = new StringBuilder("CoinURI["); boolean first = true; for (Map.Entry<String, Object> entry : parameterMap.entrySet()) { if (first) { first = false; } else { builder.append(","); } builder.append("'").append(entry.getKey()).append("'=").append("'").append(entry.getValue().toString()).append("'"); } builder.append("]"); return builder.toString(); } CoinURI(String uri);  CoinURI(@Nullable CoinType uriType, String input); CoinType getType(); @Nullable Address getAddress(); Value getAmount(); String getLabel(); String getMessage(); String getPaymentRequestUrl(); Object getParameterByName(String name); @Override String toString(); static String convertToCoinURI(Address address, @Nullable Value amount,
                                          @Nullable String label, @Nullable String message); String toUriString(); static final String FIELD_MESSAGE; static final String FIELD_LABEL; static final String FIELD_AMOUNT; static final String FIELD_ADDRESS; static final String FIELD_PAYMENT_REQUEST_URL; }
@Test public void testGood_Combinations() throws CoinURIParseException { testObject = new CoinURI(BitcoinMain.get(), BitcoinMain.get().getUriScheme() + ":" + MAINNET_GOOD_ADDRESS + "?amount=6543210&label=Hello%20World&message=Be%20well"); assertEquals( "CoinURI['address'='1KzTSfqjF2iKCduwz59nv2uqh1W2JsTxZH','amount'='6543210BTC','label'='Hello World','message'='Be well']", testObject.toString()); }