// Add a entry cache.put("key", "value"); // Validate the entry is now in the cache assertEqual(1, cache.size()); assertTrue(cache.containsKey("key")); // Remove the entry from the cache Object v = cache.remove("key"); // Validate the entry is no longer in the cache assertEqual("value", v);