Add write() method.
Assert on object as message.