### Question:
ValidationException extends RuntimeException { ValidationException copy() { return new ValidationException(pointerToViolation, violatedSchema, super.getMessage(), causingExceptions, keyword, schemaLocation); } @Deprecated  ValidationException(Class<?> expectedType, Object actualValue);  ValidationException(Schema violatedSchema, Class<?> expectedType,
            Object actualValue); @Deprecated  ValidationException(Schema violatedSchema, Class<?> expectedType,
            Object actualValue, String keyword);  ValidationException(Schema violatedSchema, Class<?> expectedType,
            Object actualValue, String keyword, String schemaLocation); @Deprecated  ValidationException(Schema violatedSchema, String message); @Deprecated  ValidationException(Schema violatedSchema,
            String message,
            String keyword);  ValidationException(Schema violatedSchema,
            String message,
            String keyword,
            String schemaLocation); @Deprecated  ValidationException(Schema violatedSchema, StringBuilder pointerToViolation,
            String message,
            List<ValidationException> causingExceptions);   ValidationException(Schema violatedSchema, StringBuilder pointerToViolation,
            String message,
            List<ValidationException> causingExceptions,
            String keyword,
            String schemaLocation); @Deprecated  ValidationException(String message); private  ValidationException(StringBuilder pointerToViolation,
            Schema violatedSchema,
            String message,
            List<ValidationException> causingExceptions,
            String keyword, String schemaLocation); @Deprecated  ValidationException(Schema violatedSchema, String message,
            List<ValidationException> causingExceptions); static void throwFor(Schema rootFailingSchema,
            List<ValidationException> failures); List<ValidationException> getCausingExceptions(); List<String> getAllMessages(); @Override String getMessage(); String getErrorMessage(); String getPointerToViolation(); Schema getViolatedSchema(); ValidationException prepend(String fragment); ValidationException prepend(String fragment, Schema violatedSchema); int getViolationCount(); String getKeyword(); JSONObject toJSON(); String getSchemaLocation(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testCopy() { ValidationException subject = subjectWithCauses(subjectWithCauses()); ValidationException copy = subject.copy(); assertEquals(subject, copy); }