public function testFieldMappingsCollection($class)
{
$this->assertFalse($class->fieldMappings['id']['collection']);
$this->assertTrue($class->fieldMappings['comments']['collection']);
$this->assertTrue($class->fieldMappings['roles']['collection']);
$this->assertEquals('comments', $class->fieldMappings['comments']['wrapper']);
$this->assertEquals('comment', $class->fieldMappings['comments']['name']);
$this->assertEquals('comments', $class->fieldMappings['comments']['fieldName']);
$this->assertEquals('role', $class->fieldMappings['roles']['name']);
$this->assertEquals('roles', $class->fieldMappings['roles']['fieldName']);
return $class;
}