@Test
public void testValidationWithNonValidResourceContent(TestContext context){

    Async async = context.async();
    prepareSchema(SAMPLE_SCHEMA);
    class GETValidationResourceRequest extends HttpServerRequestMock {
        @Override public HttpMethod method() {
            return HttpMethod.GET;
        }
        @Override public String uri() { return "/foo/mediadata/v1/specials/03";   }
        @Override public String path() {
            return "/foo/mediadata/v1/specials/03";
        }
    }
    String type = "GET/out";
    Buffer jsonBuffer = Buffer.buffer(CONTENT_NOT_MATCHING_SAMPLE_SCHEMA);
    validator.validate(new GETValidationResourceRequest(), type, jsonBuffer, validationResult -> {
        context.assertFalse(validationResult.isSuccess());
        context.assertEquals(ValidationStatus.VALIDATED_NEGATIV, validationResult.getValidationStatus());
        String message = validationResult.getMessage();
        context.assertFalse(message.contains("Could not get path"), message);
        context.assertFalse(message.contains("No schema for"), message);
        context.assertTrue(message.contains("Invalid JSON for /foo/mediadata/v1/specials/03"), message);
        context.assertTrue(message.contains("\"message\" : \"$.lastName: is missing but it is required\""), message);
        async.complete();
    });
}