public function testRunWithInvalidHandler()
{
$command = new Test(array('request' => $this->request, 'classes' => $this->classes));
$command->format = 'foobar';
$lithium = Libraries::get('lithium', 'path');
$path = $lithium . '/tests/mocks/test/cases/MockTest.php';
$command->run($path);
$expected = "No handler for format `foobar`... \n";
$result = $command->response->error;
$this->assertEqual($expected, $result);
}