public function test_read_invalid_expression()
{
$accessor = PropertyAccess::createPropertyAccessor();
$json = $this->newTestedInstance('{"foo":"bar"}');
$this->exception(function () use($json, $accessor) {
$json->read('jeanmarc', $accessor);
})->isInstanceOf('Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException');
}