public function testEncodeCollectionPlain()
 {
     $bears = Bear::where('name', 'Lawly')->get();
     $this->assertInstanceOf(Collection::class, $bears);
     $this->assertCount(1, $bears);
     $this->assertInstanceOf(Bear::class, $bears[0]);
     $this->assertEquals($bears, $this->coder->decode($this->coder->encode($bears)));
 }
 public function testDecodeModelPlain()
 {
     $bear = Bear::where('name', 'Lawly')->firstOrFail();
     $this->assertInstanceOf(Bear::class, $bear);
     $encodedBear = $this->coder->encode($bear);
     $decodedBear = $this->coder->decode($encodedBear);
     $this->assertEquals($bear, $decodedBear);
 }