### Question:
SpringProcessor extends AbstractRestAnnotationProcessor { @Override protected String getMethod(Element element, TypeElement annotation) { Collection<String> values = valueOf(ANN_MAPPING, annotation, element, "method"); if (values == null) { return null; } String result = values.iterator().next(); if (result != null && result.startsWith(METHOD_PREFIX)) { result = result.substring(METHOD_PREFIX.length()); } return result; } SpringProcessor();   }### Answer:
@Test public void extractsMethod() throws Exception { TypeElement annotation = requestMapping(); String method = "GET"; Element element = annotatedClass(annotation, "method", SPRING_ANNOTATION_PACKAGE + "RequestMethod." + method); assertEquals("URI", method, processor.getMethod(element, annotation)); }