### Question:
NotNullConstraintValidationErrorDescriptorBuilder implements ValidationErrorDescriptorBuilder<NotNull> { @Override public ErrorDescriptor build(ConstraintViolation<NotNull> violation) { return new ErrorDescriptor().setErrorCode(DefaultConstraintAnnotation.getErrorCode(violation)). addProperties(new ClientProperty("propertyPath", violation.getPropertyPath().toString())) .setParameters(violation.getPropertyPath().toString()); }  @Override ErrorDescriptor build(ConstraintViolation<NotNull> 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)); }