* {@link org.richfaces.test.staging.ServerResourcesDirectory#addResource(org.richfaces.test.staging.ServerResourcePath, org.richfaces.test.staging.ServerResource)}
* .
*/
@Test
public void testAddResource() {
ServerResourcesDirectory root = new ServerResourcesDirectory();
MockResource webXml = new MockResource();
root.addResource(ServerResourcePath.WEB_XML, webXml);
assertEquals(1, root.getPaths().size());
MockResource facesConfig = new MockResource();
root.addResource(ServerResourcePath.FACES_CONFIG, facesConfig);
assertEquals(1, root.getPaths().size());
ServerResource webInf = root.getResource(ServerResourcePath.WEB_INF);
assertNotNull(webInf);
assertEquals(2, webInf.getPaths().size());
assertSame(webXml, webInf
.getResource(new ServerResourcePath("/web.xml")));
assertSame(facesConfig, webInf.getResource(new ServerResourcePath(