AXIOM-506: Remove unnecessary usages of PartDataHandlerBlobFactory
diff --git a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestBuildWithAttachments.java b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestBuildWithAttachments.java
index 52c96b7..599ffcf 100644
--- a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestBuildWithAttachments.java
+++ b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestBuildWithAttachments.java
@@ -22,7 +22,6 @@
 import java.util.Iterator;
 
 import org.apache.axiom.mime.MultipartBody;
-import org.apache.axiom.mime.activation.PartDataHandlerBlobFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.om.OMText;
@@ -45,7 +44,6 @@
                 MultipartBody.builder()
                         .setInputStream(in)
                         .setContentType(sample.getContentType())
-                        .setPartBlobFactory(PartDataHandlerBlobFactory.DEFAULT)
                         .build();
         SOAPEnvelope envelope =
                 OMXMLBuilderFactory.createSOAPModelBuilder(metaFactory, mb).getSOAPEnvelope();
diff --git a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestMTOMForwardStreaming.java b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestMTOMForwardStreaming.java
index ac75089..a8033f3 100644
--- a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestMTOMForwardStreaming.java
+++ b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap12/envelope/TestMTOMForwardStreaming.java
@@ -24,8 +24,7 @@
 
 import org.apache.axiom.blob.Blob;
 import org.apache.axiom.mime.MultipartBody;
-import org.apache.axiom.mime.activation.PartDataHandlerBlobFactory;
-import org.apache.axiom.mime.activation.PartDataHandler;
+import org.apache.axiom.mime.PartBlob;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.om.OMOutputFormat;
@@ -37,7 +36,6 @@
 import org.apache.axiom.testutils.blob.TestBlob;
 import org.apache.axiom.testutils.io.IOTestUtils;
 import org.apache.axiom.ts.AxiomTestCase;
-import org.apache.axiom.util.activation.DataHandlerUtils;
 
 /**
  * Tests that attachments are streamed (i.e. not read entirely into memory) if the original message
@@ -108,8 +106,6 @@
                                             MultipartBody.builder()
                                                     .setInputStream(pipe1In)
                                                     .setContentType(contentType)
-                                                    .setPartBlobFactory(
-                                                            PartDataHandlerBlobFactory.DEFAULT)
                                                     .build();
                                     SOAPEnvelope envelope =
                                             OMXMLBuilderFactory.createSOAPModelBuilder(
@@ -138,7 +134,6 @@
                     MultipartBody.builder()
                             .setInputStream(pipe2In)
                             .setContentType(contentType)
-                            .setPartBlobFactory(PartDataHandlerBlobFactory.DEFAULT)
                             .build();
             SOAPEnvelope envelope =
                     OMXMLBuilderFactory.createSOAPModelBuilder(metaFactory, mb).getSOAPEnvelope();
@@ -149,16 +144,12 @@
 
             IOTestUtils.compareStreams(
                     blob1.getInputStream(),
-                    ((PartDataHandler)
-                                    DataHandlerUtils.toDataHandler(
-                                            ((OMText) data1.getFirstOMChild()).getBlob()))
+                    ((PartBlob) ((OMText) data1.getFirstOMChild()).getBlob())
                             .getPart()
                             .getInputStream(false));
             IOTestUtils.compareStreams(
                     blob2.getInputStream(),
-                    ((PartDataHandler)
-                                    DataHandlerUtils.toDataHandler(
-                                            ((OMText) data2.getFirstOMChild()).getBlob()))
+                    ((PartBlob) ((OMText) data2.getFirstOMChild()).getBlob())
                             .getPart()
                             .getInputStream(false));
         } finally {