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);