assertEquals("child one", importedChildOne.getData().getContent());
}
@Test
public void testImportingFromNonRootPageUpdatesPageContent() throws Exception {
PageData data = testData.pageTwo.getData();
WikiImportProperty importProperty = new WikiImportProperty(baseUrl + "PageOne");
importProperty.addTo(data.getProperties());
data.setContent("nonsense");
testData.pageTwo.commit(data);
Response response = makeSampleResponse("blah");
MockResponseSender sender = new MockResponseSender();
sender.doSending(response);
data = testData.pageTwo.getData();
assertEquals("page one", data.getContent());
assertFalse(WikiImportProperty.createFrom(data.getProperties()).isRoot());
}