### Question:
CheckAttributePatternsValidator implements ConstraintValidator<CheckAttributePatterns, List<String>>,
        ValidationErrorDescriptorBuilder { @Override public ErrorDescriptor build(ConstraintViolation violation) { return ATTRIBUTE_PATTERNS_INCLUDES_INVALID. createDescriptor(ConstraintValidatorContextDecorator.getArgumentsArray(violation)); }  @Override void initialize(CheckAttributePatterns constraintAnnotation); @Override boolean isValid(List<String> value, ConstraintValidatorContext context); @Override ErrorDescriptor build(ConstraintViolation violation);  }### Answer:
@Test public void build_someViolationWithErrorArgs_returnErrorDescriptor() { String value1 = "value1"; String value2 = "value2"; ConstraintViolation violation = mockViolationThatContainsExpressionVariables(value1, value2); assertEquals(ATTRIBUTE_PATTERNS_INCLUDES_INVALID.createDescriptor(value1, value2), validator.build(violation)); }