@Test(expected = SchemaValidationFailedException.class)
public void convertMapValueHasUndefinedField() {

    Schema schema = Schema.of(
            Schema.Field.of("a", Schema.Type.BINARY),
            Schema.Field.of("b", Schema.Type.ARRAY),
            Schema.Field.of("c", Schema.Type.STRING));
    Map<String, Object> value = new HashMap<>();
    value.put("a", new byte[] { 0x01, 0x02 });
    value.put("b", Collections.singletonList("hello"));
    value.put("c", "hello");
    value.put("d", "world");
    SchemaValueConverter.convertMap(schema, value);
}