String testValue = prefix + ":someLocalName";
String svuri = Name.NS_SV_URI;
String svprefix = Name.NS_SV_PREFIX + ":";
ContentHandler ch = superuser.getImportContentHandler(testRootNode.getPath(), ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
ch.startDocument();
ch.startPrefixMapping(prefix, uri);
String nN = "node";
AttributesImpl attrs = new AttributesImpl();
attrs.addAttribute(svuri, "name", svprefix + "name", "CDATA", nodeName1);
ch.startElement(svuri, nN, svprefix + nN, attrs);
// primary node type
String pN = "property";
attrs = new AttributesImpl();
attrs.addAttribute(svuri, "name", svprefix + "name", "CDATA", JcrConstants.JCR_PRIMARYTYPE);
attrs.addAttribute(svuri, "type", svprefix + "type", "CDATA", PropertyType.nameFromValue(PropertyType.NAME));
ch.startElement(svuri, pN, svprefix + pN, attrs);
ch.startElement(svuri, "value", svprefix + "value", new AttributesImpl());
char[] val = testNodeType.toCharArray();
ch.characters(val, 0, val.length);
ch.endElement(svuri, "value", svprefix + "value");
ch.endElement(svuri, pN, prefix + pN);
// another name value
attrs = new AttributesImpl();
attrs.addAttribute(svuri, "name", svprefix + "name", "CDATA", propertyName1);
attrs.addAttribute(svuri, "type", svprefix + "type", "CDATA", PropertyType.nameFromValue(PropertyType.NAME));
ch.startElement(svuri, pN, svprefix + pN, attrs);
ch.startElement(svuri, "value", svprefix + "value", new AttributesImpl());
val = testValue.toCharArray();
ch.characters(val, 0, val.length);
ch.endElement(svuri, "value", svprefix + "value");
ch.endElement(svuri, pN, svprefix + pN);
ch.endElement(svuri, nN, svprefix + nN);
ch.endDocument();
// test if property has been imported with correct namespace
String assignedPrefix = superuser.getNamespacePrefix(uri);
assertTrue(superuser.getNamespaceURI(assignedPrefix).equals(uri));
String path = testRootNode.getPath() + "/" + nodeName1 + "/" + propertyName1;