public static RecordBuilder<Schema> record(String name) {
    return builder().record(name);
  }
@Test
  void defaultTypes() {
    Integer intDef = 1;
    Long longDef = 2L;
    Float floatDef = 3F;
    Double doubleDef = 4D;
    Schema schema = SchemaBuilder.record("r").fields().name("int").type().intType().intDefault(intDef).name("long")
        .type().longType().longDefault(longDef).name("float").type().floatType().floatDefault(floatDef).name("double")
        .type().doubleType().doubleDefault(doubleDef).endRecord();

    assertEquals(intDef, schema.getField("int").defaultVal(), "int field default type or value mismatch");
    assertEquals(longDef, schema.getField("long").defaultVal(), "long field default type or value mismatch");
    assertEquals(floatDef, schema.getField("float").defaultVal(), "float field default type or value mismatch");
    assertEquals(doubleDef, schema.getField("double").defaultVal(), "double field default type or value mismatch");
  }