@Test
public void buildRecordsInvalidValueType() throws ValidationException {

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Property 'value' must be of type JsonObject");
    buildRecords("myTopic", Buffer.buffer("{\"records\":[{\"value\":123}]}"));
}