I want to unit test a RESTful interface written with Apache CXF.
I use a ServletContext to load some resources, so I have:
private ServletContext servletContext;
In your unit test, you are probably going to want to create an instance of a MockServletContext.
You can then pass this instance to your service object through a setter method.