### Question:
JaxrsProcessor extends AbstractRestAnnotationProcessor { @Override public Set<String> getSupportedAnnotationTypes() { if (patchAnnotation == null) { return super.getSupportedAnnotationTypes(); } Set<String> result = new HashSet<>(); result.addAll(super.getSupportedAnnotationTypes()); result.add(patchAnnotation); return result; } JaxrsProcessor(); @Override Set<String> getSupportedOptions(); @Override synchronized void init(ProcessingEnvironment environment); @Override Set<String> getSupportedAnnotationTypes(); static final String PATCH_OPTION; static final String LOG_OPTION; }### Answer:
@Test public void supportsJaxrsAnnotations() { Set<String> annotations = processor.getSupportedAnnotationTypes(); assertFalse("No annotations supported", annotations.isEmpty()); for (String annotation : annotations) { assertTrue("Incorrect annotation: " + annotation, annotation.startsWith(JAXRS_PACKAGE)); } assertTrue("Doesn't support PathParam", annotations.contains(JAXRS_PACKAGE + "PathParam")); }