String username = new GUID().toString(); String clientID = new GUID().toString(); String password = new GUID().toString();
String username = "user123"; String clientID = "clientid-4354"; String password = "my_password";
   public void testGetPreConfClientId_2() throws Exception   {      InitialContext ctx = new InitialContext();      TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME);      DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS");      String username = new GUID().toString();      String clientID = new GUID().toString();      String password = new GUID().toString();      Transaction txOld = mgr.suspend();      mgr.begin();      Connection conn = ds.getConnection();      String sql = "INSERT INTO JMS_USER (USERID, CLIENTID, PASSWD) VALUES (?,?,?)";      PreparedStatement ps = conn.prepareStatement(sql);      ps.setString(1, username);      ps.setString(2, clientID);      ps.setString(3, password);      int rows = ps.executeUpdate();      log.debug(JDBCUtil.statementToString(sql, username, clientID, password) + " completed successfully");      assertEquals(1, rows);      mgr.commit();      if (txOld != null)      {         mgr.resume(txOld);      }      conn.close();      String theClientID = channelMapper.getPreConfiguredClientID(username);      assertNotNull(theClientID);      assertEquals(clientID, theClientID);              }