SocketTimeoutAnnotationHandler extends NoOpAnnotationHandler<SocketTimeout> { @Override public void handleInterfaceAnnotation(SocketTimeout annotation, InterfaceConfigBuilder builder) { builder.setMethodsSocketTimeout(annotation.value()); }  @Override void handleInterfaceAnnotation(SocketTimeout annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(SocketTimeout annotation, MethodConfigBuilder builder);  }
@Test public void handleInterfaceAnnotationShouldSetMethodsSocketTimeout() throws Exception { when(mockAnnotation.value()).thenReturn(12); toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder); verify(mockAnnotation).value(); verify(mockInterfaceConfigBuilder).setMethodsSocketTimeout(12); }