### Question:
B2ContentMemoryWriter extends B2ContentWriter { @Override public void readContent(B2Headers responseHeaders, InputStream rawIn) throws B2Exception { final long len = responseHeaders.getContentLength(); if (len >= MAX_LEN) { throw new B2LocalException("too_big", "contentLength is too big for this B2ContentMemoryWriter. (" + len + " > " + MAX_LEN + ")"); } super.readContent(responseHeaders, rawIn); } private  B2ContentMemoryWriter(boolean verifySha1ByRereadingFromDestination); @Override void readContent(B2Headers responseHeaders,
                            InputStream rawIn); byte[] getBytes(); static Builder builder(); static B2ContentMemoryWriter build();  }### Answer:
@Test public void testReadContent() throws B2Exception { final ByteArrayInputStream in = new ByteArrayInputStream(makeBytes(LEN)); final B2ContentMemoryWriter writer = B2ContentMemoryWriter.build(); assertEquals(0, writer.getBytes().length); writer.readContent(makeHeaderWithSha1(LEN), in); assertArrayEquals(makeBytes(LEN), writer.getBytes()); }