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

    try {
        delegateFactory.parseDelegate("someDelegate", Buffer.buffer(INVALID_TRANSFORM_PROPERTY_DELEGATE_RESOURCE));
        context.fail("Should have thrown a ValidationException since 'transform' spec is not valid");
    } catch(ValidationException ex){
        context.assertEquals("Could not parse json transform specification of delegate someDelegate", ex.getMessage());
    }
}