sess = jbcm0.createSession(id);
sess.access();
sess.getSession().setAttribute("test", "test");
jbcm0.storeSession(sess);
sess.endAccess();
assertEquals("Session count correct", 1, jbcm0.getActiveSessionCount());
assertEquals("Local session count correct", 1, jbcm0.getLocalActiveSessionCount());
assertEquals("Session count correct", 1, jbcm1.getActiveSessionCount());
assertEquals("Local session count correct", 0, jbcm1.getLocalActiveSessionCount());