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