assertEquals("restricted", gcr.getTypeNames().get(1).getLocalPart());
assertEquals(SF_NAMESPACE, gcr.getTypeNames().get(1).getNamespaceURI());
}
public void testEncode() throws Exception {
GetCentralRevisionType gcr = new GetCentralRevisionType();
gcr.getTypeNames().add(new QName(SF_NAMESPACE, "archsites"));
gcr.getTypeNames().add(new QName(SF_NAMESPACE, "restricted"));
Document doc = encode(gcr, GSS.GetCentralRevision);
// print(doc);
assertXpathEvaluatesTo("2", "count(//gss:GetCentralRevision/gss:TypeName)", doc);
assertXpathEvaluatesTo("sf:archsites", "//gss:GetCentralRevision/gss:TypeName[1]", doc);