public function testGetOptionWithDefault()
{
$optName = 'option-name';
$defaultValue = 'default';
$opts = $this->getMock('\\Clinner\\ValueHolder');
$opts->expects($this->once())->method('get')->with($this->equalTo($optName), $this->equalTo($defaultValue))->will($this->returnValue($defaultValue));
$command = $this->getMockBuilder('\\Clinner\\Command\\Command')->disableOriginalConstructor()->setMethods(null)->getMock();
$this->_setPrivateProperty($command, '_options', $opts);
$response = $command->getOption($optName, $defaultValue);
$this->assertEquals($defaultValue, $response);
}