int MAX_SESSIONS_PER_CONN = 3;
jndiEnv.put(JMSEpr.MAX_SESSIONS_PER_CONNECTION, Integer.toString(MAX_SESSIONS_PER_CONN));
jndiEnv.put(JMSEpr.MAX_XA_SESSIONS_PER_CONNECTION, "1");
MockJndiContextHandler.objects.put("ConnectionFactory", new MockJMSXAConnectionFactory(MAX_SESSIONS_PER_CONN));
JmsConnectionPool connPool = new JmsConnectionPool(jndiEnv);
List<JmsConnectionPool.JmsSessionPool> sessPools = connPool.getSessionPools();
assertEquals(20, connPool.getMaxSessions());
assertEquals(MAX_SESSIONS_PER_CONN, connPool.getMaxSessionsPerConnection());