public function testGetDataSliceWithCompositeKey()
 {
     $class = "FSi\\Component\\DataIndexer\\Tests\\Fixtures\\Post";
     $dataIndexer = new DoctrineDataIndexer($this->getManagerRegistry(), $class);
     $post1 = new Post('foo', 'foo1');
     $post2 = new Post('bar', 'bar1');
     $this->em->persist($post1);
     $this->em->persist($post2);
     $this->em->flush();
     $this->em->clear();
     $news = $dataIndexer->getDataSlice(array("foo|foo1", "bar|bar1"));
     $this->assertSame(array($news[0]->getIdFirstPart() . '|' . $news[0]->getIdSecondPart(), $news[1]->getIdFirstPart() . '|' . $news[1]->getIdSecondPart()), array("bar|bar1", "foo|foo1"));
 }