public function testBeginOptionCommand()
{
$this->config->beginOptionCommand('command1', 'a')->end()->beginOptionCommand('command2', 'b')->end();
$this->assertEquals(array(new OptionCommandConfig('command1', 'a', $this->config, $this->applicationConfig), new OptionCommandConfig('command2', 'b', $this->config, $this->applicationConfig)), $this->config->getSubCommandConfigs());
}