ValidatorParameterHelper { public OneParamValidator primitiveOrWrapper(TypeKind primitive) { return param(new PrimitiveOrWrapperParameterRequirement(primitive)); } ValidatorParameterHelper(TargetAnnotationHelper targetAnnotationHelper); Validator noParam(); OneParamValidator type(String qualifiedName); OneParamValidator extendsType(String qualifiedName); OneParamValidator extendsAnyOfTypes(String... types); OneParamValidator anyType(); OneParamValidator annotatedWith(Class<? extends Annotation> annotationClass); OneParamValidator primitiveOrWrapper(TypeKind primitive); OneParamValidator anyOfTypes(String... types); OneParamValidator param(ParameterRequirement parameterRequirement); InOrderParamValidator inOrder(); AnyOrderParamValidator anyOrder();  }
@Test public void primitiveParam() throws Exception { ExecutableElement executableElement = createMethod(int.class, Integer.class); ElementValidation valid = new ElementValidation("", executableElement); validator.primitiveOrWrapper(TypeKind.INT).multiple().validate(executableElement, valid); assertTrue(valid.isValid()); }