public function testGroupBySupportsString()
 {
     $item1 = new Item(1, 'Foo', 'Group1');
     $item2 = new Item(2, 'Bar', 'Group1');
     $item3 = new Item(3, 'Baz', 'Group2');
     $item4 = new Item(4, 'Boo!', null);
     $choiceList = new ModelChoiceList(self::ITEM_CLASS, 'value', array($item1, $item2, $item3, $item4), null, 'groupName');
     $this->assertEquals(array(1 => $item1, 2 => $item2, 3 => $item3, 4 => $item4), $choiceList->getChoices());
     $this->assertEquals(array('Group1' => array(1 => new ChoiceView($item1, '1', 'Foo'), 2 => new ChoiceView($item2, '2', 'Bar')), 'Group2' => array(3 => new ChoiceView($item3, '3', 'Baz')), 4 => new ChoiceView($item4, '4', 'Boo!')), $choiceList->getRemainingViews());
 }