public function testParse()
{
$groupListParser = $this->getParser();
$inputArray = array('ObjectStateGroup' => array(array('_media-type' => 'application/vnd.ez.api.ObjectStateGroup+xml'), array('_media-type' => 'application/vnd.ez.api.ObjectStateGroup+xml')));
$this->getParsingDispatcherMock()->expects($this->exactly(2))->method('parse')->with(array('_media-type' => 'application/vnd.ez.api.ObjectStateGroup+xml'), 'application/vnd.ez.api.ObjectStateGroup+xml')->will($this->returnValue('foo'));
$result = $groupListParser->parse($inputArray, $this->getParsingDispatcherMock());
$this->assertEquals(array('foo', 'foo'), $result);
}