assertTrue("Expecting WSFeature to be instance of MTOMFeature, but found WSFeature is not a MTOMFeature",wsFeature instanceof MTOMFeature);
assertTrue("Expecting Threshold value to be 1, but found"+ ((MTOMFeature)wsFeature).getThreshold(),((MTOMFeature)wsFeature).getThreshold()==1);
JAXBElement<SendPDFFileResponse> response = (JAXBElement<SendPDFFileResponse>)dispatch.invoke(of.createSendPDFFile(pdf));
assertNotNull(response);
SendPDFFileResponse responsePdf = response.getValue();
assertNotNull(responsePdf);
DataHandler dh = responsePdf.getReturn();
assertNotNull(dh);
//Lets ensure the file content came back as expected.
//Validate that the file data is available
BufferedInputStream fileIn = new BufferedInputStream(dh.getInputStream());
assertNotNull(fileIn);