/**
  * @dataProvider providerGetFieldsThrowsExceptionWhenInvalidValueProvided
  * @expectedException ride\library\http\jsonapi\exception\BadRequestJsonApiException
  */
 public function testGetFieldsThrowsExceptionWhenInvalidValueProvided($fields, $type)
 {
     $query = new JsonApiQuery(array(JsonApiQuery::PARAMETER_FIELDS => $fields));
     $result = $query->getFields($type);
 }