/**
  * SyncResponse constructor.
  * @param \stdClass $response
  * @throws ResponseParseException on creating response for notification
  */
 public function __construct(\stdClass $response)
 {
     $this->response = $response;
     /** @noinspection PhpInternalEntityUsedInspection */
     $validator = new ResponseBodyValidator();
     $validator->validate($this->response);
 }
 /**
  * @param \stdClass $body
  *
  * @dataProvider validResponseBodyProvider
  */
 public function testValidBody(\stdClass $body)
 {
     $parser = new ResponseBodyValidator();
     $parser->validate($body);
 }