// parse the metadata file
XPath xPath = XPath.newInstance( "//metadata/versioning" );
Element rootElement = document.getRootElement();
Element versioning = (Element) xPath.selectSingleNode( rootElement );
Element el = (Element) xPath.newInstance( "./latest" ).selectSingleNode( versioning );
assertEquals( "2.0.4-SNAPSHOT", el.getValue() );
el = (Element) xPath.newInstance( "./lastUpdated" ).selectSingleNode( versioning );
assertFalse( el.getValue().equals( "20070427033345" ) );