public function testIsIterable()
 {
     $this->assertTrue(JsonApi_Utility::isIterable(array()), 'Expected array to be iterable.');
     $this->assertTrue(JsonApi_Utility::isIterable(new stdClass()), 'Expected stdClass instance to be iterable.');
     $this->assertTrue(JsonApi_Utility::isIterable(new ArrayObject()), 'Expected instance of class implementing Traversable to be iterable.');
     $this->assertFalse(JsonApi_Utility::isIterable('hello'), 'Expected scalar to be not iterable.');
     $this->assertFalse(JsonApi_Utility::isIterable(new JsonApi_Exception()), 'Expected instance of class not implementing Traversable to be not iterable.');
 }
 /** Generates a content key for a path/params combo.
  *
  * @param string $path
  * @param array  $params
  *
  * @return string
  */
 protected function _genContentKey($path, array $params)
 {
     return (string) $this->getUrl($path, JsonApi_Utility::normalizeParams($params));
 }