HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);
IMap<String, TempData> map = instance1.getMap("test");
try {
map.put("a", new TempData("foo", "bar"));
map.executeOnEntries(new LoggingEntryProcessor(), Predicates.equal("attr1", "foo"));
map.executeOnEntries(new DeleteEntryProcessor(), Predicates.equal("attr1", "foo"));
// Now the entry has been removed from the primary store but not the backup.
// Let's kill the primary and execute the logging processor again...
String a_member_uiid = instance1.getPartitionService().getPartition("a").getOwner().getUuid();
HazelcastInstance newPrimary;
if (a_member_uiid.equals(instance1.getCluster().getLocalMember().getUuid())) {