### Question:
ServerSessionPoolCenter { public synchronized ServerSessionPool getServerSessionPool(DBConnectionInfo info, boolean isAutoCommit) { isAutoCommit = forceAutoCommit(info) ? true : isAutoCommit; PoolId id = new PoolId(info, isAutoCommit); ServerSessionPool pool = entities.get(id); if (Objects.isNull(pool)) { pool = new ServerSessionPool(info, isAutoCommit, serverSessionFactory); entities.put(id, pool); } else { pool.retain(); } return pool; }  static ServerSessionPoolCenter getInst(); static Map<PoolId, ServerSessionPool> getEntities(); synchronized ServerSessionPool getServerSessionPool(DBConnectionInfo info,
        boolean isAutoCommit); synchronized ServerSessionPool getSickServerSessionPool(DBVendor dbVendor); synchronized ServerSessionPool getBatchOperateServerSessionPool();  }### Answer:
@Test public void testGetServerSessionPool() throws Exception { ServerSessionPool master0NonAutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master0, false); ServerSessionPool master0AutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master0, true); ServerSessionPool master1NonAutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master1, false); ServerSessionPool master1AutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master1, true); ServerSessionPool master2NonAutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master2, false); ServerSessionPool master2AutoCommit = ServerSessionPoolCenter.getInst().getServerSessionPool(master2, true); Assert.assertSame(master0NonAutoCommit, master1NonAutoCommit); Assert.assertSame(master0AutoCommit, master1AutoCommit); Assert.assertNotSame(master0NonAutoCommit, master0AutoCommit); Assert.assertNotSame(master1NonAutoCommit, master1AutoCommit); Assert.assertNotSame(master2NonAutoCommit, master0NonAutoCommit); Assert.assertNotSame(master2AutoCommit, master1AutoCommit); ServerSessionPool slave1 = ServerSessionPoolCenter.getInst().getServerSessionPool(this.slave1, true); ServerSessionPool slave2 = ServerSessionPoolCenter.getInst().getServerSessionPool(this.slave2, true); ServerSessionPool slave3 = ServerSessionPoolCenter.getInst().getServerSessionPool(this.slave3, true); Assert.assertSame(slave3, slave2); Assert.assertNotSame(slave1, slave2); Assert.assertNotSame(slave1, slave3); }