private void cleanupConnInfos() {
   try {
     RegistryConnectInfo info = _bizRegMgr.findRegistryConnectInfoByName("TestConn2");
     if (info != null) {
       _bizRegMgr.deleteRegistryConnectInfo((Long) info.getKey());
     }
   } catch (Throwable t) {
   }
 }
 private void checkRegConnInfo(Map infoMap, RegistryConnectInfo expected) {
   assertEquals("Name incorrect", expected.getName(), infoMap.get(IRegistryConnectInfo.NAME));
   assertEquals(
       "Publish Url incorrect",
       expected.getPublishUrl(),
       infoMap.get(IRegistryConnectInfo.PUBLISH_URL));
   assertEquals(
       "Publish Password incorrect",
       expected.getPublishPassword(),
       infoMap.get(IRegistryConnectInfo.PUBLISH_PASSWORD));
   assertEquals(
       "Publish User incorrect",
       expected.getPublishUser(),
       infoMap.get(IRegistryConnectInfo.PUBLISH_USER));
   assertEquals(
       "Query Url incorrect", expected.getQueryUrl(), infoMap.get(IRegistryConnectInfo.QUERY_URL));
 }
 private RegistryConnectInfo createConnectInfo(
     String name, String publishUrl, String queryUrl, String publishUser, String publishPassword) {
   RegistryConnectInfo newInfo = new RegistryConnectInfo();
   newInfo.setName(name);
   newInfo.setPublishPassword(publishPassword);
   newInfo.setPublishUrl(publishUrl);
   newInfo.setPublishUser(publishUser);
   newInfo.setQueryUrl(queryUrl);
   return newInfo;
 }