### Question:
RawBackupWriter implements BackupWriter { @Override public void writeBytes(byte[] bytes) throws IOException { outputStream.write(bytes); bytesWritten += bytes.length; } RawBackupWriter(OutputStream outputStream); @Override void writeBytes(byte[] bytes); @Override void writeChunk(long start, int length); @Override long getBytesWritten(); @Override void flush();  }### Answer:
@Test public void writeBytes_writesToOutputStream() throws Exception { mWriter.writeBytes(TEST_BYTES); assertThat(mOutput.toByteArray()) .asList() .containsExactlyElementsIn(Bytes.asList(TEST_BYTES)) .inOrder(); }