List<TestRecord> entities = new ArrayList<TestRecord>();
for (int i = 0; i < cnt; i++) {
Map<String, String> field3Map = new HashMap<String, String>();
field3Map.put("field3_key_1_" + i, "field3_value_1_" + i);
field3Map.put("field3_key_2_" + i, "field3_value_2_" + i);
EmbeddedRecord embeddedRecord = EmbeddedRecord.newBuilder()
.setEmbeddedField1("embedded1_" + i).setEmbeddedField2(i).build();
List<ArrayRecord> arrayRecordList = new ArrayList<ArrayRecord>(2);
arrayRecordList.add(ArrayRecord.newBuilder()
.setSubfield1("subfield1_" + i).setSubfield2(i)
.setSubfield3("subfield3_" + i).build());