ConstraintViolation { public String getMessage() { return message; } ConstraintViolation(String message);  ConstraintViolation(); int getIndex(); void setIndex(int index); String getMessage(); void setMessage(String message); String getName(); void setName(String name); String getProp(); void setProp(String prop); @Override String toString();  }
@Test public void testEmptyConstructor() { ConstraintViolation cv = new ConstraintViolation(); String result = cv.getMessage(); assertThat(result).isEqualTo(null); }
@Test public void testConstructor() { ConstraintViolation cv = new ConstraintViolation("message"); String result = cv.getMessage(); assertThat(result).isEqualTo("message"); }