### Question:
Signature { public byte[] getBytes() { return ArrayUtils.concat(this.r, this.s); } 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 getBytesReturns64Bytes() { for (final Signature signature : this.createRoundtripTestSignatures()) { MatcherAssert.assertThat(signature.getBytes().length, IsEqual.equalTo(64)); } }
@Test public void canRoundtripBinarySignature() { for (final Signature signature : this.createRoundtripTestSignatures()) { MatcherAssert.assertThat(new Signature(signature.getBytes()), IsEqual.equalTo(signature)); } }