@Test
public void testEncode() {

  scrambledPasswordHexStr = "83ad20dc9b0c61f959fb93f451a42fc2d15ab811b882d667fe8f0fcd0a8acaeb";
  nonce = new byte[]{
    // part1
    0x36, 0x47, 0x48, 0x05, 0x03, 0x6c, 0x6e, 0x60,
    // part2
    0x54, 0x73, 0x50, 0x61, 0x2b, 0x1b, 0x12, 0x04, 0x6e, 0x5a, 0x79, 0x60
  };
  Assert.assertEquals(scrambledPasswordHexStr, StringUtil.toHexString(CachingSha2Authenticator.encode(PASSWORD, nonce)));
}