public function testType()
{
$this->assertEqual('json', $this->message->type("json"));
$this->assertEqual('json', $this->message->type());
$expected = 'json';
$result = $this->message->type("application/json; charset=UTF-8");
$this->assertEqual($expected, $result);
}