@Test
public void testMissingSchedulersProperty(TestContext context) throws ValidationException {

    try {
        schedulerFactory.parseSchedulers(Buffer.buffer(MISSING_SCHEDULERS_PROPERTY));
        context.fail("Should have thrown a ValidationException since 'schedulers' property is missing");
    } catch(ValidationException ex){
        context.assertNotNull(ex.getValidationDetails());
        context.assertEquals(2, ex.getValidationDetails().size());
        for(Object obj : ex.getValidationDetails()){
            JsonObject jsonObject = (JsonObject) obj;
            if("additionalProperties".equalsIgnoreCase(jsonObject.getString("keyword"))){
                context.assertEquals("listofschedulers", jsonObject.getJsonArray("unwanted").getString(0));
            } else if("required".equalsIgnoreCase(jsonObject.getString("keyword"))){
                context.assertEquals("schedulers", jsonObject.getJsonArray("missing").getString(0));
            }
        }
    }
}