### Question:
InMemoryBinary extends AbstractBinary { public InputStream getStream() { return new ByteArrayInputStream(this.bytes); } InMemoryBinary( byte[] bytes ); @Override int hashCode(); long getSize(); byte[] getHash(); byte[] getBytes(); InputStream getStream(); void acquire(); void release();  }### Answer:
@Test public void shouldProvideInputStreamToContent() throws IOException { InputStream stream = binary.getStream(); byte[] actual = IoUtil.readBytes(stream); assertThat(actual.length, is(validByteArrayContent.length)); for (int i = 0, len = actual.length; i != len; ++i) { assertThat(actual[i], is(validByteArrayContent[i])); } }