### Question:
SpringProcessor extends AbstractRestAnnotationProcessor { @Override protected Collection<String> getConsumes(Element element, TypeElement annotation) { return valueOf(ANN_MAPPING, annotation, element, "consumes"); } SpringProcessor();   }### Answer:
@Test public void extractsConsumes() { TypeElement annotation = requestMapping(); String consumes = aMediaType(); Element element = annotatedClass(annotation, "consumes", consumes); assertEquals("Consumes", Arrays.asList(consumes), processor.getConsumes(element, annotation)); }