@Test
public void testValueAsObjectByteArray() throws Exception {
ObjectPartList list = new VersionedObjectList(100, false, false, true);
byte[] normalBytes = "value1".getBytes();
list.addObjectPart("key", normalBytes, false, null);
list.addObjectPart("key", "value2", true, null);
byte[] serializedObjectBytes = BlobHelper.serializeToBlob("value3");
list.addObjectPart("key", serializedObjectBytes, true, null);
list.addExceptionPart("key", new AssertionError("hello"));
list.addObjectPartForAbsentKey("key", null);
ObjectPartList newList = CopyHelper.copy(list);
checkSerializedValues(newList);
newList = CopyHelper.copy(newList);
checkSerializedValues(newList);
}