public function testCanGetQueryOptionsDeserializer()
 {
     $dataValueFactory = $this->getMock('Deserializers\\Deserializer');
     $askFactory = new DeserializerFactory($dataValueFactory);
     $deserializer = $askFactory->newQueryOptionsDeserializer();
     $object = array('objectType' => 'queryOptions', 'limit' => 100, 'offset' => 42, 'sort' => array('expressions' => array()));
     $this->assertDeserializerThatCanDeserializeObject($deserializer, $object);
 }
 protected function newQueryDeserializer()
 {
     $dvDeserializer = new DataValueDeserializer(array('string' => 'DataValues\\StringValue'));
     $deserializerFactory = new DeserializerFactory($dvDeserializer);
     return $deserializerFactory->newQueryDeserializer();
 }