assertTrue(managers[1].getNotificationPolicy() instanceof MockClusteredSessionNotificationPolicy);
MockClusteredSessionNotificationPolicy mcsnp1 = (MockClusteredSessionNotificationPolicy) managers[1].getNotificationPolicy();
assertNotNull("capability set", mcsnp1.getClusteredSessionNotificationCapability());
mcsnp1.setResponse(notify);
MockHttpSessionListener hsl0 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();
Context ctx = (Context) managers[0].getContainer();
ctx.setApplicationSessionLifecycleListeners(new Object[] { hsl0 });
ctx.setApplicationEventListeners(new Object[] { hsal0 });
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) managers[1].getContainer();
ctx.setApplicationSessionLifecycleListeners(new Object[] { hsl1 });
ctx.setApplicationEventListeners(new Object[] { hsal1 });