@Test
public void testInvalidJson() throws ValidationException {

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Unable to parse json");
    delegateFactory.parseDelegate("someDelegate", Buffer.buffer(INVALID_JSON));
}