Implement message writer.

Would it be better to interleave calls to assertData() with calls to flush() ? Otherwise are these two equivalent? 

```
 assertData("0123");
 assertData("4568");
```
```
 assertData("01234568");
```