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

    try {
        delegateFactory.parseDelegate("someDelegate", Buffer.buffer(TRANSFORM_TRANSFORM_WITH_METADATA_PROPERTY_DELEGATE_RESOURCE));
        context.fail("Should have thrown a ValidationException since 'transform' and 'transformWithMetadata' properties are not allowed concurrently");
    } catch(ValidationException ex){
        context.assertNotNull(ex.getValidationDetails());
        context.assertEquals(1, ex.getValidationDetails().size());
        for(Object obj : ex.getValidationDetails()){
            JsonObject jsonObject = (JsonObject) obj;
            context.assertEquals("oneOf", jsonObject.getString("type"));
        }
    }
}