public function testSetShardKeyForClassWithCollPerClassInheritance()
{
$cm = new ClassMetadataInfo('stdClass');
$cm->inheritanceType = ClassMetadataInfo::INHERITANCE_TYPE_COLLECTION_PER_CLASS;
$cm->setShardKey(array('id' => 'asc'));
$shardKey = $cm->getShardKey();
$this->assertEquals(array('id' => 1), $shardKey['keys']);
}