assertEquals(SF_NAMESPACE, layerRevision.getTypeName().getNamespaceURI());
assertEquals(22, layerRevision.getCentralRevision());
}
public void testEncode() throws Exception {
CentralRevisionsType cr = new CentralRevisionsType();
cr.getLayerRevisions().add(new LayerRevision(new QName(SF_NAMESPACE, "archsites"), 15));
Document doc = encode(cr, GSS.CentralRevisions);
// print(doc);
assertXpathEvaluatesTo("1", "count(//gss:CentralRevisions/gss:LayerRevision)", doc);
assertXpathEvaluatesTo("sf:archsites", "//gss:CentralRevisions/gss:LayerRevision/@typeName", doc);