public void testGetRootElement() {
Element docRoot = doc.getDefaultRootElement();
Element bufRoot = buf.getRootElement();
assertSame(docRoot, bufRoot);
bufRoot = doc.new BranchElement(null, null);
buf = doc.new ElementBuffer(bufRoot);
doc.buffer = buf;
// The previously fetched root element of the document is distinct
// from the newly created (no doubt).
assertNotSame(docRoot, bufRoot);
// But document returns the newly created element about which it didn't