Is it possible to write JUnit tests that are agnostic to your JAX-RS implementation?
<p>I wrote a REST web service using JAX-RS that knows nothing about the specific JAX-RS implementation I chose. I happen to be using TomEE which means my JAX-RS implementation is ApacheCXF.</p>

<p>I'd like to write unit tests for the web service that also know nothing about the JAX-RS implementation. Is this possible? So far every example I've found involves using classes from a specific JAX-RS implementation (JAXRSClientFactory for ApacheCXF, Jersey Test Framework, etc).</p>

<p>I've started experimenting with tomee-embedded and am able to test my EJB's but it doesn't seem to startup the REST services.</p>