           _id: @person3._id
           username: @person3.username
         ]
+        slug: 'subdocument-prefix-foobar-subdocumentfoobar-suffix'
         body: 'SubdocumentFooBar'
       nested: [
         required:

  test.equal Person.Meta.fields, {}

  test.equal Post.Meta.collection, Posts
  test.equal _.size(Post.Meta.fields), 6
  test.instanceOf Post.Meta.fields.author, Person._ReferenceField
  test.isNull Post.Meta.fields.author.ancestorArray, Post.Meta.fields.author.ancestorArray
  test.isTrue Post.Meta.fields.author.required

  test.equal Post.Meta.fields.subdocument.persons.sourceDocument.Meta.collection, Posts
  test.equal Post.Meta.fields.subdocument.persons.targetDocument.Meta.collection, Persons
  test.equal Post.Meta.fields.subdocument.persons.fields, ['username']
  test.equal _.size(Post.Meta.fields.nested), 3
  test.equal Post.Meta.fields.nested.required.ancestorArray, 'nested'
  test.isTrue Post.Meta.fields.nested.required.required
  test.equal Post.Meta.fields.nested.required.sourcePath, 'nested.required'
