### Question:
CheckQueryDetailsNullValidator implements ConstraintValidator<CheckQueryDetailsNull,
        List<ClientQueryField>>, ValidationErrorDescriptorBuilder { @Override public ErrorDescriptor build(ConstraintViolation violation) { return QUERY_DETAILS_UNSUPPORTED.createDescriptor(); }  @Override void initialize(CheckQueryDetailsNull constraintAnnotation); @Override boolean isValid(List<ClientQueryField> value, ConstraintValidatorContext context); @Override ErrorDescriptor build(ConstraintViolation violation);  }### Answer:
@Test public void build_success() { ConstraintViolation violation = mock(ConstraintViolation.class); ErrorDescriptor errorDescriptor = validator.build(violation); assertEquals(new ErrorDescriptor().setErrorCode(QUERY_DETAILS_UNSUPPORTED), errorDescriptor); }