/**
  * getWidget
  * 
  * bootstraps an instance of ERestJSONOutputWidget
  *
  * @return (Object) an instance of ERestJSONOutputWidget
  */
 public function getWidget($config = [])
 {
     $controller = new PostController('post');
     $controller->attachBehaviors(['ERestBehavior' => 'RestfullYii.behaviors.ERestBehavior']);
     $controller->ERestInit();
     $widget = new ERestJSONOutputWidget($controller);
     $this->assertInstanceOf('ERestJSONOutputWidget', $widget);
     foreach ($config as $prop => $value) {
         $widget->{$prop} = $value;
     }
     return $widget;
 }