@Test
public void testEmptyMapperPropertiesNotAllowed(TestContext context) {

    try {
        roleMapperFactory.parseRoleMapper(Buffer.buffer(EMPTY_PROP_MAPPER_RESOURCE));
        context.fail("Should have thrown a ValidationException since 'minLength' is set to 1 in the schema");
    } catch (ValidationException ex) {
        context.assertNotNull(ex.getValidationDetails());
        // validate that both attributes are reported to be invalid
        context.assertEquals(2, ex.getValidationDetails().size());
        for (Object obj : ex.getValidationDetails()) {
            JsonObject jsonObject = (JsonObject) obj;
            context.assertEquals("minLength", jsonObject.getString("type"));
        }
    }
}