}
@Test
public void testVersionedPropertiedLoadedProperly() throws Exception {
WikiPage page = WikiPageUtil.addPage(root, PathParser.parse("TestPage"));
PageData data = page.getData();
WikiPageProperties oldProps = data.getProperties();
WikiPageProperties props = new WikiPageProperties();
props.set("MyProp", "my value");
data.setProperties(props);
page.commit(data);
data.setProperties(oldProps);
VersionInfo version = page.commit(data);
PageData versionedData = page.getVersion(version.getName()).getData();
WikiPageProperties versionedProps = versionedData.getProperties();
assertTrue(versionedProps.has("MyProp"));
assertEquals("my value", versionedProps.get("MyProp"));
}