CacheRecord record2 = recordStore2.getRecord(key);
Object value1 = serializationService.toObject(record1.getValue());
Object value2 = serializationService.toObject(record2.getValue());
Partition partition = hz1.getPartitionService().getPartition(1);
if (hz1.getCluster().getLocalMember().equals(partition.getOwner())) {
assertEquals("Foo1", value1);
assertEquals("Foo2", value2);
} else {
assertEquals("Foo1", value2);
assertEquals("Foo2", value1);