@Test
public void testBad_BadSyntax() {

    // Various illegal characters
    try {
        testObject = new UlordURI(MAINNET, BITCOIN_SCHEME + "|" + MAINNET_GOOD_ADDRESS);
        fail("Expecting UlordURIParseException");
    } catch (UlordURIParseException e) {
        assertTrue(e.getMessage().contains("Bad URI syntax"));
    }
    try {
        testObject = new UlordURI(MAINNET, BITCOIN_SCHEME + ":" + MAINNET_GOOD_ADDRESS + "\\");
        fail("Expecting UlordURIParseException");
    } catch (UlordURIParseException e) {
        assertTrue(e.getMessage().contains("Bad URI syntax"));
    }
    // Separator without field
    try {
        testObject = new UlordURI(MAINNET, BITCOIN_SCHEME + ":");
        fail("Expecting UlordURIParseException");
    } catch (UlordURIParseException e) {
        assertTrue(e.getMessage().contains("Bad URI syntax"));
    }
}