public void testSimpleVersionTasks() throws Exception {
WikiPagePath path = PathParser.parse("MyPageOne");
WikiPage page = WikiPageUtil.addPage(root, path, "old content");
PageData data = page.getData();
data.setContent("new content");
VersionInfo previousVersion = page.commit(data);
Collection<VersionInfo> versions = page.getVersions();
assertEquals(1, versions.size());
assertEquals(true, versions.contains(previousVersion));
WikiPage loadedPage = page.getVersion(previousVersion.getName());
assertEquals("old content", loadedPage.getData().getContent());
}