private ExternalTestPage makePage(String directory, String name, String content) throws IOException {
FileSystem fileSystem = new MemoryFileSystem();
File path = new File(directory, name);
fileSystem.makeFile(path, content);
FileSystemPage rootPage = new FileSystemPageFactory(fileSystem, new SimpleFileVersionsController(fileSystem), new SystemVariableSource()).makePage(null, "RooT", null);
return new ExternalTestPage(path, name, rootPage, fileSystem, variableSource);
}