CoinURI implements Serializable { @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 getTypeRequired(); @Nullable CoinType getType(); boolean hasType(); @Nullable AbstractAddress getAddress(); Value getAmount(); String getLabel(); String getMessage(); String getPublicKey(); String getPaymentRequestUrl(); URI getAddressRequestUri(); boolean isAddressRequest(); URI getAddressRequestUriResponse(AbstractAddress address); URI getAddressRequestUriResponse(String address); Object getParameterByName(String name); @Override String toString(); static String convertToCoinURI(AbstractAddress address); static String convertToCoinURI(AbstractAddress address, @Nullable Value amount,
                                          @Nullable String label, @Nullable String message); static String convertToCoinURI(AbstractAddress address, @Nullable Value amount,
                                          @Nullable String label, @Nullable String message,
                                          @Nullable String pubkey); 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; static final String FIELD_ADDRESS_REQUEST_URI; static final String FIELD_NETWORK; static final String FIELD_PUBKEY; }
@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()); }