public function testGetItem()
{
$dummy = new Dummy();
$dummy->setName('Lucie');
$firstDataProvider = $this->prophesize(ItemDataProviderInterface::class);
$firstDataProvider->getItem(Dummy::class, 1, null, [])->willThrow(ResourceClassNotSupportedException::class);
$secondDataProvider = $this->prophesize(ItemDataProviderInterface::class);
$secondDataProvider->getItem(Dummy::class, 1, null, [])->willReturn($dummy);
$thirdDataProvider = $this->prophesize(ItemDataProviderInterface::class);
$thirdDataProvider->getItem(Dummy::class, 1, null, [])->willReturn(new \stdClass());
$chainItemDataProvider = new ChainItemDataProvider([$firstDataProvider->reveal(), $secondDataProvider->reveal(), $thirdDataProvider->reveal()]);
$this->assertEquals($dummy, $chainItemDataProvider->getItem(Dummy::class, 1));
}