public function testisWritable()
 {
     $message = new XliffMessage('foo');
     $this->assertTrue($message->isWritable());
     $this->assertSame($message, $message->setState(XliffMessage::STATE_FINAL));
     $this->assertFalse($message->isWritable());
     $this->assertSame($message, $message->setState(XliffMessage::STATE_NONE));
     $this->assertTrue($message->isWritable());
     $this->assertSame($message, $message->setState(XliffMessage::STATE_TRANSLATED));
     $this->assertFalse($message->isWritable());
     $this->assertSame($message, $message->setState(XliffMessage::STATE_NEW));
     $this->assertTrue($message->isWritable());
 }