public function testValidChoiceCallbackFunction() {
  $constraint = new Choice(array(
    'callback' => __NAMESPACE__ . '\\choice_callback',
  ));
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate('bar', $constraint);
}