byte[] bytes = new byte[3000];
random.nextBytes(bytes);
Blob blob = writeBlob(bytes, "aMediaType", "testCreate");
IdGeneratorImpl idGeneratorImpl = new IdGeneratorImpl();
RecordId recordId = idGeneratorImpl.newRecordId();
BlobReference blobReference = new BlobReference(blob, recordId, fieldType);
Set<BlobReference> blobs = new HashSet<BlobReference>();
blobs.add(blobReference);
repository.newRecord();
Record record = repository.newRecord();
record.setRecordType(recordType.getName());