EncodedAnnotationHandler extends NoOpAnnotationHandler<Encoded> { @Override public void handleParameterAnnotation(Encoded annotation, ParamConfigBuilder builder) { builder.setEncoded(true); }  @Override void handleInterfaceAnnotation(Encoded annotation, InterfaceConfigBuilder builder); @Override void handleMethodAnnotation(Encoded annotation, MethodConfigBuilder builder); @Override void handleParameterAnnotation(Encoded annotation, ParamConfigBuilder builder);  }
@Test public void handleParamsAnnotationShouldSetParamsEncoded() throws Exception { toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder); verify(mockParamConfigBuilder).setEncoded(true); }
@Test public void handleParamsAnnotationShouldSetEncoded() throws Exception { toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder); verify(mockParamConfigBuilder).setEncoded(true); }