PathParamsAnnotationHandler extends NoOpAnnotationHandler<PathParams> { @Override public void handleMethodAnnotation(PathParams annotation, MethodConfigBuilder builder) { for(PathParam paramAnnotation : annotation.value()){ handler.handleMethodAnnotation(paramAnnotation, builder); } } PathParamsAnnotationHandler(PathParamAnnotationHandler handler);  PathParamsAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(PathParams annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(PathParams annotation, MethodConfigBuilder builder);  }
@Test public void handleMethodAnnotationShouldDelegateToInnerHandlerForEachAnnotations() throws Exception { when(mockAnnotation.value()).thenReturn(mockAnnotations); toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder); verify(mockPathParamAnnotationHandler).handleMethodAnnotation(mockAnnotations[0], mockMethodConfigBuilder); verify(mockPathParamAnnotationHandler).handleMethodAnnotation(mockAnnotations[1], mockMethodConfigBuilder); verify(mockAnnotation).value(); }