### Question:
Signature { public byte[] getBinaryR() { return this.r; } 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 getBinaryRReturnsRAsByteArray() { final byte[] originalR = new byte[32]; originalR[15] = 123; final byte[] s = new byte[32]; final Signature signature = new Signature(originalR, s); final byte[] r = signature.getBinaryR(); MatcherAssert.assertThat(r, IsEqual.equalTo(originalR)); }