assertTrueEventually(new AssertTask() {
@Override
public void run()
throws Exception {
CacheRecord record1 = recordStore1.getRecord(key);
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);