public function createModel($params = [], $methods = null)
{
$params = array_merge(['id' => 'model', 'endpoint' => 'tcp://127.0.0.1:2080', 'type' => $params['type'], 'host' => 'model'], $params);
$loop = $this->getMock(Loop::class, $methods, [], '', false);
$model = $this->getMock(Socket::class, $methods, [$loop, $params]);
$this->model = $model;
return $model;
}