public function testPathTemplate()
{
$expected = array('{:app}/libraries/{:name}', '{:root}/{:name}');
$result = Libraries::paths('libraries');
$this->assertEqual($expected, $result);
$this->assertNull(Libraries::locate('authAdapter', 'Form'));
$paths = Libraries::paths();
$test = array('authAdapter' => array('lithium\\security\\auth\\adapter\\{:name}'));
Libraries::paths($test);
$this->assertEqual($paths + $test, Libraries::paths());
$class = Libraries::locate('authAdapter', 'Form');
$expected = 'lithium\\security\\auth\\adapter\\Form';
$this->assertEqual($expected, $class);
Libraries::paths($paths + array('authAdapter' => false));
$this->assertEqual($paths, Libraries::paths());
}