protected void runTest() throws Throwable {
OMFactory factory = metaFactory.getOMFactory();
OMDataSource ds = new ByteArrayDataSource("<p:element xmlns:p='urn:ns'>test</p:element>".getBytes("utf-8"), "utf-8");
OMSourcedElement element = factory.createOMElement(ds);
OMCloneOptions options = new OMCloneOptions();
options.setCopyOMDataSources(true);
OMElement clone = (OMElement)element.clone(options);
assertTrue(clone instanceof OMSourcedElement);
assertFalse(element.isExpanded());
OMNamespace expectedNS = factory.createOMNamespace("urn:ns", "p");
assertEquals("element", element.getLocalName());