RootResourceClassGenerator.generateRootResourceClass(Resource.class,
"myURI",
"application/xml,application/json",
"application/xml,application/json");
Assert.assertTrue(cls.isAnnotationPresent(Path.class));
Path path = cls.getAnnotation(Path.class);
Assert.assertEquals("myURI", path.value());
Produces produces = cls.getAnnotation(Produces.class);
Assert.assertEquals("application/xml", produces.value()[0]);
Consumes consumes = cls.getAnnotation(Consumes.class);