I do experience a really annoying problem with TestNG and RESTeasy.
I do have a class that runs several tests against an API class which uses the RESTeasy framework
I solved this problem by changing org.glassfish.jersey version in my pom.xml
org.glassfish.jersey
pom.xml
Below is my pom.xml
javax.ws.rs javax.ws.rs-api 2.1.1 org.glassfish.jersey.core jersey-client 2.31