public void testFileTransfer() throws Exception {
// For testing purpose lets try uploading FileTransferClient.java file.
DataHandler dataHandler = new DataHandler(new FileDataSource("FileTransferClient.java"));
FileTransferService filetransfer = domain.getService(FileTransferService.class, "FileTransferServiceComponent");
assertEquals("File uploaded Sucessfully", filetransfer.uploadFile(dataHandler));
}
@Override
protected void setUp() throws Exception {
domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");