public function testExtractPlugin() {
$this->skipIf(!extension_loaded('zlib'), 'The zlib extension is not loaded.');
$this->library->library = 'library_plugin_test';
$path = $this->_testPath;
$result = $this->library->extract('plugin', "{$path}/library_test_plugin");
$this->assertTrue($result);
$expected = "library_test_plugin created in {$path} from ";
$target = '/lithium/console/command/create/template/plugin.phar.gz';
$expected .= realpath(LITHIUM_LIBRARY_PATH . $target) . "\n";
$result = $this->library->response->output;
$this->assertEqual($expected, $result);
$this->_cleanup();
}