@Test
public void decoding() throws Exception {

    if(CoinDefinition.supportsTestNet)
    {
        Address a = new Address(testParams, "n4eA2nbYqErp7H6jebchxAN59DmNpksexv");
        assertEquals("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc", Utils.bytesToHexString(a.getHash160()));
    }
    Address b = new Address(mainParams, CoinDefinition.UNITTEST_ADDRESS);
    assertEquals("4a22c3c4cbb31e4d03b15550636762bda0baf85a", Utils.bytesToHexString(b.getHash160()));
}