FieldTypeEntry fieldTypeEntry = typeManager.newFieldTypeEntry(fieldType.getId(), true);
recordType.addFieldTypeEntry(fieldTypeEntry);
recordType = typeManager.createRecordType(recordType);
byte[] bytes = Bytes.toBytes("someBytes");
Blob blob = writeBlob(bytes, "aMediaType", "testCreate");
Record record = repository.newRecord();
record.setRecordType(recordType.getName(), null);
record.setField(fieldName, blob);
record = repository.create(record);
Record record2 = repository.newRecord();
record2.setRecordType(recordType.getName(), null);
record2.setField(fieldName, blob);
record2 = repository.create(record2); // For an inline record this succeeds
byte[] bytesLarge = new byte[3000];
random.nextBytes(bytesLarge);
Blob largeBlob = writeBlob(bytesLarge, "largeBlob", "testCreate");
Record record3 = repository.newRecord();
record3.setRecordType(recordType.getName(), null);
record3.setField(fieldName, largeBlob);
record3 = repository.create(record3);