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