// of an incorrect usage of XMLStreamWriter#writeStartElement(String).
private static void testSerializeDeserializeWrapped(Object bean, Object expectedResult) throws Exception {
StringWriter sw = new StringWriter();
XMLStreamWriter writer = StAXUtils.createXMLStreamWriter(sw);
writer.writeStartElement("", "root", "urn:test");
writer.writeDefaultNamespace("urn:test");
ADBBeanUtil.serialize(bean, writer);
writer.writeEndElement();
writer.flush();
OMElement omElement3 = OMXMLBuilderFactory.createOMBuilder(new StringReader(sw.toString())).getDocumentElement();
assertBeanEquals(expectedResult, ADBBeanUtil.parse(bean.getClass(), omElement3.getFirstElement().getXMLStreamReader()));