public static Builder withSchema(Schema schema) {
    return new Builder(schema);
  }
@Test(expected = IllegalArgumentException.class)
  public void testLogicalTypeWithInvalidInputValueByFieldName() {
    Schema schema = Schema.builder().addLogicalTypeField("char", FixedBytes.of(10)).build();
    byte[] byteArrayWithLengthFive = {1, 2, 3, 4, 5};
    Row.withSchema(schema).withFieldValue("char", byteArrayWithLengthFive).build();
  }