public function testJsonSerialize()
{
$c = new Collection([new TestArrayableObject(), new TestJsonableObject(), new TestJsonSerializeObject(), 'baz']);
$this->assertSame([['foo' => 'bar'], ['foo' => 'bar'], ['foo' => 'bar'], 'baz'], $c->jsonSerialize());
}