public class RampartTest extends TestCase {
public void testExtension(){
TestExtension testExtension = new TestExtension();
Base64Binary base64Binary = new Base64Binary();
testExtension.setTestExtension(base64Binary);
String testString = "test base 64 eleemnt";
DataHandler dataHandler = new DataHandler(new ByteArrayDataSource(testString.getBytes()));
base64Binary.setBase64Binary(dataHandler);
ContentType_type0 contentType_type0 = new ContentType_type0();
contentType_type0.setContentType_type0("test string");
base64Binary.setContentType(contentType_type0);
try {
OMElement omElement = testExtension.getOMElement(TestExtension.MY_QNAME, OMAbstractFactory.getOMFactory());
String omElementString = omElement.toStringWithConsume();
System.out.println("OM String " + omElementString);
XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
TestExtension result = TestExtension.Factory.parse(xmlReader);
} catch (ADBException e) {
fail();
} catch (XMLStreamException e) {
fail();