Set<Class<?>> classes = new HashSet<Class<?>>();
classes.add(Resource2.class);
Set<ClassMetadata> metadataSet = generator.buildClassMetdata(classes);
Assert.assertEquals(1, metadataSet.size());
ClassMetadata metadata = metadataSet.iterator().next();
assertEquals(Resource2.class.getAnnotation(Path.class).value(), metadata.getPath());
List<MethodMetadata> methodMetadata = metadata.getResourceMethods();
assertEquals(2, methodMetadata.size());
assertEquals(HttpMethod.GET, methodMetadata.get(0).getHttpMethod());
assertEquals(HttpMethod.POST, methodMetadata.get(1).getHttpMethod());
}