Permlink implements ByteTransformable { @Override public byte[] toByteArray() throws SteemInvalidTransactionException { return SteemJUtils.transformStringToVarIntByteArray(this.getLink()); } Permlink(); @JsonCreator  Permlink(String link); @JsonValue String getLink(); void setLink(String link); @Override byte[] toByteArray(); @Override String toString(); @Override boolean equals(Object otherPermlink); @Override int hashCode(); boolean isEmpty();  }
@Test public void testPermlinkToByteArray() throws Exception { Permlink customPermlink = new Permlink("steemj-v0-2-4-has-been-released-update-9"); assertThat("Expect that the accountName object has the given byte representation.", CryptoUtils.HEX.encode(customPermlink.toByteArray()), equalTo(EXPECTED_BYTE_REPRESENTATION)); }