public function testNormalizeTraversable() {
$this->serializer = new Serializer(array(), array(
'json' => new JsonEncoder(),
));
$result = $this->serializer
->serialize(new TraversableDummy(), 'json');
$this
->assertEquals('{"foo":"foo","bar":"bar"}', $result);
}