/**
  * @test
  */
 public function it_serializes_objects_by_passing_then_to_the_normalizer()
 {
     $object = new \stdClass();
     $this->normalizerMock->expects(self::atLeastOnce())->method('normalize')->with($object, 'json')->willReturn(spl_object_hash($object));
     self::assertEquals(array('type' => 'stdClass', 'payload' => spl_object_hash($object)), $this->serializer->serialize($object));
 }