/**
  * @test
  */
 function it_creates_a_new_nested_model_related_as_belongs_to()
 {
     $data = ['title' => 'created', 'body' => 'fresh', 'comments' => [['title' => 'created comment', 'body' => 'comment body', 'author' => ['name' => 'new author']]]];
     $post = Post::create($data);
     $this->assertInstanceOf(Post::class, $post);
     $this->assertTrue($post->exists);
     $author = Author::latest()->first();
     $this->assertInstanceOf(Author::class, $author, "Author model should have been created");
     $this->seeInDatabase('posts', ['id' => $post->id, 'title' => 'created', 'body' => 'fresh']);
     $this->seeInDatabase('comments', ['post_id' => $post->id, 'title' => 'created comment', 'body' => 'comment body', 'author_id' => $author->id]);
     $this->seeInDatabase('authors', ['id' => $author->id, 'name' => 'new author']);
 }