@Test
public void buildRecordsNotArray() throws ValidationException {

    thrown.expect( ValidationException.class );
    thrown.expectMessage("Property 'records' must be of type JsonArray holding JsonObject objects");
    buildRecords("myTopic", Buffer.buffer("{\"records\": \"shouldBeAnArray\"}"));
}