### Question:
CookieParamsAnnotationHandler extends NoOpAnnotationHandler<CookieParams> { @Override public void handleMethodAnnotation(CookieParams annotation, MethodConfigBuilder builder) { for(CookieParam paramAnnotation : annotation.value()){ handler.handleMethodAnnotation(paramAnnotation, builder); } } CookieParamsAnnotationHandler(CookieParamAnnotationHandler handler);  CookieParamsAnnotationHandler(CRestConfig crestConfig); @Override void handleInterfaceAnnotation(CookieParams annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(CookieParams annotation, MethodConfigBuilder builder);  }### Answer:
@Test public void handleMethodAnnotationShouldDelegateToInnerHandlerForEachAnnotations() throws Exception { when(mockAnnotation.value()).thenReturn(mockAnnotations); toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder); verify(mockCookieParamAnnotationHandler).handleMethodAnnotation(mockAnnotations[0], mockMethodConfigBuilder); verify(mockCookieParamAnnotationHandler).handleMethodAnnotation(mockAnnotations[1], mockMethodConfigBuilder); verify(mockAnnotation).value(); }