random.nextBytes(bytes4);
Blob blob4 = writeBlob(bytes4, "aMediaType", "testUpdateMutableMultivalueHierarchyBlob4");
Record record = repository.newRecord();
record.setRecordType(recordType.getName(), null);
record.setField(fieldName, Arrays.asList(new HierarchyPath(blob, blob2), new HierarchyPath(blob3)));
record = repository.create(record);
Record record2 = repository.newRecord(record.getId());
record2.setRecordType(recordType.getName(), null);
record2.setField(fieldName, Arrays.asList(new HierarchyPath(blob2), new HierarchyPath(blob3, blob4)));
record2 = repository.update(record2, false, false);
// Mutable update of first version
Record record3 = repository.newRecord(record.getId());
record3.setVersion(record.getVersion());
record3.setRecordType(recordType.getName(), null);
record3.setField(fieldName, Arrays.asList(new HierarchyPath(blob3, blob4), new HierarchyPath(blob4)));
record3 = repository.update(record3, true, false);
// Blob2
byte[] readBytes = readBlob(record2.getId(), record2.getVersion(), fieldName, 0, 0);
assertTrue(Arrays.equals(bytes2, readBytes));