/**
  * Test the save method to see if it works.
  *
  * @return void
  */
 public function testSaveMethod()
 {
     $payload = ['token' => 'sometoken', 'expires_in' => 3600, 'created' => Carbon::now()->format('U')];
     $token = new Token('username2', $payload);
     $this->assertTrue($token->save());
     $this->assertFileExists($this->getTokenStoragePath('token-username2.json'));
     $this->assertJsonStringEqualsJsonFile($this->getTokenStoragePath('token-username2.json'), collect($payload)->toJson());
     $this->deleteTestTokenFile('token-username2');
 }