@Test
public void arrayToJson() {

    Schema int32Array = SchemaBuilder.array(Schema.INT32_SCHEMA).build();
    JsonNode converted = parse(converter.fromConnectData(TOPIC, int32Array, Arrays.asList(1, 2, 3)));
    validateEnvelope(converted);
    assertEquals(parse("{ \"type\": \"array\", \"items\": { \"type\": \"int32\", \"optional\": false }, \"optional\": false }"),
            converted.get(JsonSchema.ENVELOPE_SCHEMA_FIELD_NAME));
    assertEquals(JsonNodeFactory.instance.arrayNode().add(1).add(2).add(3),
            converted.get(JsonSchema.ENVELOPE_PAYLOAD_FIELD_NAME));
}