public function createCommand($methods = null)
{
if ($this->class === '') {
throw new Exception('Class not set');
}
$channel = $this->getMock(ChannelInterface::class, [], [], '', false);
$receiver = 'default';
$this->cmd = $this->getMock($this->class, $methods, [$channel, $receiver]);
return $this->cmd;
}