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