@Test
public void testSwap() throws Exception
{
final RootXmlResource rootXmlResource = new RootXmlResource( new XmlResourceStore( loadResource( "TestData.xml" ) ) );
final TestRootElement root = TestRootElement.TYPE.instantiate( rootXmlResource );
root.getChildren().swap( root.getChildren().get( 0 ), root.getChildren().get( 1 ) );
try