@Deprecated
  public static Schema parse(File file) throws IOException {
    return new Parser().parse(file);
  }
@Test
  public void testRecordInArray() {
    String schemaString = "{\n" + "  \"type\": \"record\",\n" + "  \"name\": \"TestRecord\",\n" + "  \"fields\": [\n"
        + "    {\n" + "      \"name\": \"value\",\n" + "      \"type\": {\n" + "        \"type\": \"record\",\n"
        + "        \"name\": \"Container\",\n" + "        \"fields\": [\n" + "          {\n"
        + "            \"name\": \"Optional\",\n" + "            \"type\": {\n" + "              \"type\": \"array\",\n"
        + "              \"items\": [\n" + "                {\n" + "                  \"type\": \"record\",\n"
        + "                  \"name\": \"optional_field_0\",\n" + "                  \"namespace\": \"\",\n"
        + "                  \"doc\": \"\",\n" + "                  \"fields\": [\n" + "                    {\n"
        + "                      \"name\": \"optional_field_1\",\n" + "                      \"type\": \"long\",\n"
        + "                      \"doc\": \"\",\n" + "                      \"default\": 0\n"
        + "                    }\n" + "                  ]\n" + "                }\n" + "              ]\n"
        + "            }\n" + "          }\n" + "        ]\n" + "      }\n" + "    }\n" + "  ]\n" + "}";
    final Schema schema = new Schema.Parser().parse(schemaString);
    assertNotNull(schema);
  }