@Test
public void testBad_Amount() throws BitcoinURIParseException {

    // Missing
    try {
        testObject = new BitcoinURI(MAINNET, BITCOIN_SCHEME + ":" + MAINNET_GOOD_ADDRESS
                + "?amount=");
        fail("Expecting BitcoinURIParseException");
    } catch (BitcoinURIParseException e) {
        assertTrue(e.getMessage().contains("amount"));
    }
    // Non-decimal (BIP 21)
    try {
        testObject = new BitcoinURI(MAINNET, BITCOIN_SCHEME + ":" + MAINNET_GOOD_ADDRESS
                + "?amount=12X4");
        fail("Expecting BitcoinURIParseException");
    } catch (BitcoinURIParseException e) {
        assertTrue(e.getMessage().contains("amount"));
    }
}