@Test
public void shouldName() throws Exception {

    final Schema violatedSchema = mock(Schema.class);
    when(violatedSchema.getId()).thenReturn("schema id");
    final ValidationException validationException = new ValidationException(
            violatedSchema,
            "error message",
            "don't care",
            "schemaLocation");
    final String errorMessage = schemaValidationErrorMessageGenerator.generateErrorMessage(validationException);
    assertThat(errorMessage, is("Json validation failed with 1 violation(s): error message. Errors: [#: error message]. Violated schema id: 'schema id'. Location: 'schemaLocation'"));
}