public function testRegisterDataFormatShouldThrowExceptionWhenDataFormatDoesNotDefineMimeTypes()
 {
     $dataFormat = $this->getMockForAbstractClass('Wookieb\\ZorroRPC\\Serializer\\DataFormat\\DataFormatInterface');
     $dataFormat->expects($this->any())->method('getMimeTypes')->will($this->returnValue(null));
     $this->setExpectedException('\\UnexpectedValueException', 'must returns array of supported mime types');
     $this->object->registerDataFormat($dataFormat);
 }