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