### Question:
Address extends VersionedChecksummedBytes { public byte[] getHash160() { return bytes; } Address(NetworkParameters params, int version, byte[] hash160);  Address(NetworkParameters params, byte[] hash160);  Address(@Nullable NetworkParameters params, String address); static Address fromP2SHHash(NetworkParameters params, byte[] hash160); static Address fromP2SHScript(NetworkParameters params, Script scriptPubKey); byte[] getHash160(); boolean isP2SHAddress(); @Nullable NetworkParameters getParameters(); @Nullable static NetworkParameters getParametersFromAddress(String address); static final int LENGTH; }### Answer:
@Test public void decoding() throws Exception { Address b = new Address(mainParams, "DJKTVKGSDp5aUQzgtWyhbMtsXvW8s2vVRU"); assertEquals("908f4849864c54dadc24bf01c0c2dcd7180fd038", Utils.bytesToHexString(b.getHash160())); }
@Test public void decoding() throws Exception { Address a = new Address(testParams, "n4eA2nbYqErp7H6jebchxAN59DmNpksexv"); assertEquals("fda79a24e50ff70ff42f7d89585da5bd19d9e5cc", Utils.bytesToHexString(a.getHash160())); Address b = new Address(mainParams, "17kzeh4N8g49GFvdDzSf8PjaPfyoD1MndL"); assertEquals("4a22c3c4cbb31e4d03b15550636762bda0baf85a", Utils.bytesToHexString(b.getHash160())); }