assertEquals(record2.getId(), link.getMasterRecordId());
}
@Test
public void testRecordBuilder() throws Exception {
RecordBuilder builder = repository.recordBuilder();
Record record = builder.recordType(recordType1.getName())
.field(fieldType1.getName(), "abc")
.field(fieldType2.getName(), 123)
.field(fieldType3.getName(), true)
.create();
assertEquals(record, repository.read(record.getId()));
builder.reset();
Record record2 = builder.recordType(recordType2.getName())
.field(fieldType4.getName(), 999)
.field(fieldType5.getName(), true)
.field(fieldType6.getName(), "xyz")
.create();