Hi,

I'm trying out the RESTEasy Mock framework, but POJOResourceFactory fails with CDI.

        POJOResourceFactory noDefaults = new POJOResourceFactory(RestUserServiceImpl.class);
        dispatcher.getRegistry().addResourceFactory(noDefaults);

        org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
        at com.parts.profile.test.rest.user.RestUserServiceImpl.getUser(RestUserServiceImpl.java:38)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Does RESTEasy support CDI in mock?

Cheers,
Ove