QName fieldName = new QName(namespace, "ablob2");
FieldType fieldType = typeManager.newFieldType(typeManager.getValueType("BLOB"), fieldName,
Scope.VERSIONED);
fieldType = typeManager.createFieldType(fieldType);
RecordType recordType = typeManager.newRecordType(new QName(namespace, "testCreateTwoRecordsWithSameBlobRT"));
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");