In this tutorial we are going to test a webservice using embedded Jetty instance and JUnit. Here we are testing a simple REST service implemented by CXF framework, It works as a standalone application.
CXF Webservice Using embedded Jetty
Jetty provides a Web server and javax.servlet container, plus support for SPDY, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and available for commercial use and distribution
Reference -> http://www.eclipse.org/jetty/