assertTrue(up.value.equals("baz"));\r
assertTrue(up.cacheName.equals(cache1));\r
\r
+ /**********************************/\r
+ /* RE-UPDATE AN EXISTING KEY CASE */\r
+ /**********************************/\r
+ // Start monitoring the updates\r
+ res = listener.restart(1);\r
+ // modify the cache\r
+ cm11.put(k1, "baz");\r
+ // Wait\r
+ res.await(100L, TimeUnit.SECONDS);\r
+ // Analyze the updates\r
+ ups = listener.getUpdates();\r
+ assertTrue(ups.size() == 1);\r
+ // Validate we get an update with expect fields\r
+ up = ups.get(0);\r
+ assertTrue(up.t.equals(UpdateType.CHANGED));\r
+ assertTrue(up.key.equals(k1));\r
+ assertTrue(up.value.equals("baz"));\r
+ assertTrue(up.cacheName.equals(cache1));\r
+\r
/********************************/\r
/* REMOVAL OF EXISTING KEY CASE */\r
/********************************/\r