### Question:
NotEmptyConstraintValidationErrorDescriptorBuilder implements ValidationErrorDescriptorBuilder<NotEmpty> { @Override public ErrorDescriptor build(ConstraintViolation violation) { return new ErrorDescriptor().setErrorCode(DefaultConstraintAnnotation.getErrorCode(violation)) .addProperties(new ClientProperty("propertyPath", violation.getPropertyPath().toString())) .setParameters(violation.getPropertyPath().toString()); }  @Override ErrorDescriptor build(ConstraintViolation violation);  }### Answer:
@Test public void build_someViolation_returnDescriptor() { ErrorDescriptor expected = new ErrorDescriptor().setErrorCode(someErrorCode) .setParameters(somePropertyPath).addProperties(new ClientProperty("propertyPath", violation.getPropertyPath().toString())); assertEquals(expected, builder.build(violation)); }