### Question:
Signature { @Override public String toString() { return ConvertUtils.toHex(this.getBytes()); } Signature(final BigInteger r, final BigInteger s);  Signature(final byte[] bytes);  Signature(final byte[] r, final byte[] s); BigInteger getR(); byte[] getBinaryR(); BigInteger getS(); byte[] getBinaryS(); byte[] getBytes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void toStringReturnsHexRepresentation() { final Signature signature = createSignature(12, 513); final String expectedSignature = "0C00000000000000000000000000000000000000000000000000000000000000" + "0102000000000000000000000000000000000000000000000000000000000000"; MatcherAssert.assertThat(signature.toString(), IsEqual.equalTo(expectedSignature)); }