@Test
public void toAddress() {

    final String key = "02b0aa85eaf261b000947dd6a9753b91bfc7ab058951e2d838cf3ecdab81cc291d";
    // Address generated from the above key, with address version 0x17.
    final String expectedAddress = "ARhJPYxmizqheBQA2dSQAHWfQQsbTSba2S";
    ScriptHash sh = ScriptHash.fromPublicKey(Numeric.hexStringToByteArray(key));
    assertThat(sh.toAddress(), is(expectedAddress));
}