TicketAgentEndpoint { @SoapAction(value = "http: @ResponsePayload public JAXBElement<TFlightsResponse> listFlights( @RequestPayload JAXBElement<TListFlights> request, MessageContext messageContext) { WebServiceMessage webServiceMessage = messageContext.getRequest(); SoapMessage soapMessage = (SoapMessage) webServiceMessage; LOGGER.info("SOAPAction header: {}", soapMessage.getSoapAction()); ObjectFactory factory = new ObjectFactory(); TFlightsResponse tFlightsResponse = factory.createTFlightsResponse(); tFlightsResponse.getFlightNumber().add(BigInteger.valueOf(101)); return factory.createListFlightsResponse(tFlightsResponse); }  @SoapAction(value = "http://example.com/TicketAgent/listFlights") @ResponsePayload JAXBElement<TFlightsResponse> listFlights(
      @RequestPayload JAXBElement<TListFlights> request, MessageContext messageContext);  }
@Test public void testListFlights() { Source requestPayload = new StringSource("<ns3:listFlightsRequest xmlns:ns3=\"http: + "</ns3:listFlightsRequest>"); Source responsePayload = new StringSource("<v1:listFlightsResponse xmlns:v1=\"http: + "<flightNumber>101</flightNumber>" + "</v1:listFlightsResponse>"); mockClient .sendRequest( new SoapActionCreator(requestPayload, "http: .andExpect(payload(responsePayload)); }