public function testMemoryPage()
 {
     //Title
     MemoryPage::setTitle("Teste de titulo");
     $this->assertEquals("Teste de titulo", MemoryPage::getTitle());
     Memory::clearAll();
     $this->assertEquals("", MemoryPage::getTitle(''));
     $this->assertEquals("default titulo", MemoryPage::getTitle('default titulo'));
     //Extra header
     $this->assertNotNull(MemoryPage::getExtraHeader());
     $this->assertEmpty(MemoryPage::getExtraHeader());
     MemoryPage::setExtraHeader('my content');
     $this->assertEquals('my content', MemoryPage::getExtraHeader());
     //CSS
     $this->assertEquals(array(), MemoryPage::getCss());
     MemoryPage::addCss('teste.css');
     $this->assertEquals(array('teste.css'), MemoryPage::getCss());
     MemoryPage::addCss('teste.css');
     $this->assertEquals(array('teste.css'), MemoryPage::getCss());
     MemoryPage::addCss('teste2.css');
     $this->assertEquals(array('teste.css', 'teste2.css'), MemoryPage::getCss());
     //JS
     $this->assertEquals(array(), MemoryPage::getJs());
     MemoryPage::addJs('teste.js');
     $this->assertEquals(array('teste.js'), MemoryPage::getJs());
     MemoryPage::addJs('teste.js');
     $this->assertEquals(array('teste.js'), MemoryPage::getJs());
     MemoryPage::addJs('teste2.js');
     $this->assertEquals(array('teste.js', 'teste2.js'), MemoryPage::getJs());
 }