ArgumentConvertor implements IArgumentConvertor { JsonUnmarshaller getJsonUnmarshallerAnnotation(Annotation[] annotations) { for (Annotation annotation : annotations) { if (JsonUnmarshaller.class.isInstance(annotation)) { return (JsonUnmarshaller) annotation; } } return null; }  @Override Object convertJsonToJava(String jsonArg, Type paramType, Annotation[] parameterAnnotations);  }
@Test public void test_getJsonUnmarshallerAnnotation() { System.out.println("getJsonUnmarshallerAnnotation"); Object result = instance.getJsonUnmarshallerAnnotation(new Annotation[]{TRANSIENTDATASERVICE, TRANSIENTDATASERVICE}); assertThat(result).isNull(); result = instance.getJsonUnmarshallerAnnotation(new Annotation[]{TRANSIENTDATASERVICE, JSONUNMARSHALLER, TRANSIENTDATASERVICE}); assertThat(result).isNotNull(); }