public void testToURI() throws Exception
{
MockVFSContext context = registerStructuredVFSContextWithSubChildren();
URI uri = context.getRootURI();
VirtualFile child1 = getChildHandler(context, "child1").getVirtualFile();
VirtualFile child11 = getChildHandler(context, "child1/child1,1").getVirtualFile();
VirtualFile root = VFS.getRoot(uri);
assertEquals(uri, root.toURI());
VirtualFile found1 = root.findChild("child1");
assertEquals(child1.toURI(), found1.toURI());
VirtualFile found11 = root.findChild("child1/child1,1");
assertEquals(child11.toURI(), found11.toURI());
}