FormParamsAnnotationHandler extends NoOpAnnotationHandler<FormParams> { @Override public void handleInterfaceAnnotation(FormParams annotation, InterfaceConfigBuilder builder) { for(FormParam paramAnnotation : annotation.value()){ handler.handleInterfaceAnnotation(paramAnnotation, builder); } } FormParamsAnnotationHandler(FormParamAnnotationHandler handler);  FormParamsAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(FormParams annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(FormParams annotation, MethodConfigBuilder builder);  }
@Test public void handleInterfaceAnnotationShouldDelegateToInnerHandlerForEachAnnotations() throws Exception { when(mockAnnotation.value()).thenReturn(mockAnnotations); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockFormParamAnnotationHandler).handleInterfaceAnnotation(mockAnnotations[0], mockInterfaceConfigBuilder); verify(mockFormParamAnnotationHandler).handleInterfaceAnnotation(mockAnnotations[1], mockInterfaceConfigBuilder); verify(mockAnnotation).value(); }