public function testRunWithTestControllerCommand()
{
$this->request->params = array('library' => 'create_test', 'command' => 'create', 'action' => 'test', 'args' => array('controller', 'Posts'));
$create = new MockCreate(array('request' => $this->request));
$create->run('test');
$expected = 'controller';
$result = $create->request->command;
$this->assertEqual($expected, $result);
$result = $this->_testPath . '/create_test/tests/cases/controllers/PostsControllerTest.php';
$this->assertFileExists($result);
}