public function testFindingClassesWithExclude()
{
$options = array('recursive' => true, 'filter' => false, 'exclude' => '/\\w+Test$|webroot|index$|^app\\\\config|^\\w+\\\\views\\/|\\./');
$classes = Libraries::find('lithium', $options);
$this->assertTrue(in_array('lithium\\util\\Set', $classes));
$this->assertTrue(in_array('lithium\\util\\Collection', $classes));
$this->assertTrue(in_array('lithium\\core\\Libraries', $classes));
$this->assertTrue(in_array('lithium\\action\\Dispatcher', $classes));
$this->assertFalse(in_array('lithium\\tests\\integration\\data\\SourceTest', $classes));
$this->assertEmpty(preg_grep('/\\w+Test$/', $classes));
$expected = Libraries::find('lithium', array('filter' => '/\\w+Test$/', 'recursive' => true));
$result = preg_grep('/\\w+Test/', $expected);
$this->assertEqual($expected, $result);
}