@Test
public void stringification() throws Exception {

    if(CoinDefinition.supportsTestNet) {
    // Test a testnet address.
        Address a = new Address(testParams, Hex.decode("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc"));
        assertEquals("n4eA2nbYqErp7H6jebchxAN59DmNpksexv", a.toString());
        assertFalse(a.isP2SHAddress());
    }
    Address b = new Address(mainParams, Hex.decode("4a22c3c4cbb31e4d03b15550636762bda0baf85a"));
    assertEquals(CoinDefinition.UNITTEST_ADDRESS, b.toString());
    assertFalse(b.isP2SHAddress());
}