### Question:
ConstraintViolationSummary { @Override public String toString() { return String.format( "ConstraintViolationSummary(constrainClass:%s, violationCode:%d," + " violationDescription:%s, numberOfViolatingMutations:%d)", constrainClass, violationCode, violationDescription, numberOfViolatingMutations); } ConstraintViolationSummary(String constrainClass, short violationCode,
      String violationDescription, long numberOfViolatingMutations);  ConstraintViolationSummary(TConstraintViolationSummary tcvs); String getConstrainClass(); short getViolationCode(); String getViolationDescription(); long getNumberOfViolatingMutations(); @Override String toString(); TConstraintViolationSummary toThrift(); public String constrainClass; public short violationCode; public String violationDescription; public long numberOfViolatingMutations; }### Answer:
@Test public void testToString() { ConstraintViolationSummary cvs = new ConstraintViolationSummary("fooClass", (short) 1, "fooDescription", 100L); assertEquals("ConstraintViolationSummary(constrainClass:fooClass," + " violationCode:1, violationDescription:fooDescription," + " numberOfViolatingMutations:100)", cvs.toString()); cvs = new ConstraintViolationSummary(null, (short) 2, null, 101L); assertEquals( "ConstraintViolationSummary(constrainClass:null," + " violationCode:2, violationDescription:null," + " numberOfViolatingMutations:101)", cvs.toString()); }