public function testGetOrderByPartsWithReflection()
{
$methodExist = $this->getFunctionMock('ApiPlatform\\Core\\Bridge\\Doctrine\\Orm\\Util', 'method_exists');
$methodExist->expects($this->any())->with(OrderBy::class, 'getParts')->willReturn('false');
$orderBy = new OrderBy('name', 'desc');
$this->assertEquals(['name desc'], QueryJoinParser::getOrderByParts($orderBy));
}