// Create and open many sessions.
synchronized (sesmgr) {
for (int i = 0; i < size; i++) {
Session ses = sesmgr.createSession();
try {
ses.open();
} catch (NonReferenceableSessionException e) {
fail("Test method tried to open nonreferenceable session.");
}
sessions.add(ses);
}