/**
* @group functional
*/
public function testSetMeta()
{
$index = $this->_createIndex();
$type = $index->getType('test');
$mapping = new Mapping($type, array('firstname' => array('type' => 'string', 'store' => true), 'lastname' => array('type' => 'string')));
$mapping->setMeta(array('class' => 'test'));
$type->setMapping($mapping);
$mappingData = $type->getMapping();
$this->assertEquals('test', $mappingData['test']['_meta']['class']);
$index->delete();
}