public function testParseErrors()
{
$xml = file_get_contents(__DIR__ . '/fixtures/errors.xml');
$error = $this->parser->parseError($xml);
$expectedFields = array('foo' => array(0 => 'This value should not be null.', 1 => 'This value should not be blank.'), 'bar' => array(0 => 'This value should be equals to 6.'));
$this->assertInstanceOf('SensioLabs\\Insight\\Sdk\\Model\\Error', $error);
$this->assertSame($expectedFields, $error->getEntityBodyParameters());
}