public function testSelectElemMatchWithExpr()
{
$qb = $this->getTestQueryBuilder();
$qb->selectElemMatch('addresses', $qb->expr()->field('state')->equals('ny'));
$expected = ['addresses' => ['$elemMatch' => ['state' => 'ny']]];
$this->assertEquals($expected, $qb->debug('select'));
}