/**
* Test for contains.
* @throws Exception if any exceptions occur.
*/
public final void testContains() throws Exception {
ReferenceQueue q = new ReferenceQueue();
CacheGroup group = new CacheGroup("testGroup", new AttributesImpl());
Object obj = new Object();
group.put("testName", new CacheObject("testName", obj, group, null, q), obj);
assertEquals(true, group.contains("testName"));
assertEquals(false, group.contains("testName1"));