@Test
public void testReadContent() throws B2Exception {

    final ByteArrayInputStream in = new ByteArrayInputStream(makeBytes(LEN));
    final B2ContentMemoryWriter writer = B2ContentMemoryWriter.build();
    assertEquals(0, writer.getBytes().length); // none yet.
    writer.readContent(makeHeaderWithSha1(LEN), in);
    assertArrayEquals(makeBytes(LEN), writer.getBytes());
}