1   /*
2    * $Id$
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.cxf;
12  
13  import org.mule.tck.FunctionalTestCase;
14  
15  import org.apache.cxf.Bus;
16  
17  public class StaxFeatureTestCase extends FunctionalTestCase
18  {
19      public void testEchoService() throws Exception
20      {
21          CxfConnector cxfCon = (CxfConnector)muleContext.getRegistry().lookupConnector("connector.cxf.0");
22          assertNotNull(cxfCon);
23  
24          Bus cxfBus = cxfCon.getCxfBus();
25          
26          // ensure that our interceptor is there
27  //        assertEquals(2, cxfBus.getInInterceptors().size());
28  //        
29  //        MuleClient client = new MuleClient();
30  //        MuleMessage result = client.send("cxf:http://localhost:63081/services/Echo?method=echo", "Hello!", null);
31  //        assertEquals("Hello!", result.getPayload());
32      }
33  
34      @Override
35      protected String getConfigResources() 
36      {
37          return "stax-feature-conf.xml";
38      }
39  }
40