@Test
public void testValidateValidJsonWithContentNotMatchingSchema(TestContext context) {

    Async async = context.async();
    configurationResourceValidator = new ConfigurationResourceValidator(vertx);
    configurationResourceValidator.validateConfigurationResource(Buffer.buffer(CONTENT_NOT_MATCHING_PERSON_SCHEMA), PERSON_SCHEMA, event -> {
        context.assertTrue(event.succeeded());
        context.assertEquals(ValidationStatus.VALIDATED_NEGATIV, event.result().getValidationStatus());
        String expectedMessage = "Validation failed";
        context.assertEquals(expectedMessage, event.result().getMessage());
        context.assertNotNull(event.result().getValidationDetails());
        JsonArray validationDetails = event.result().getValidationDetails();
        context.assertEquals("$.lastName: is missing but it is required", validationDetails.getJsonObject(0).getString("message"));
        async.complete();
    });
}