@Before
public void setUp() throws Exception {
init() ;
dao = (RouteGroupDAOImpl)appContext.getBean("RouteGroupDAO") ;
OrganizationDAOImpl orgDao = (OrganizationDAOImpl)appContext.getBean("OrganizationDAO") ;
RouteRecordDAOImpl rteRecDao = (RouteRecordDAOImpl)appContext.getBean("RouteRecordDAO") ;
DestinationGroupDAOImpl dgDao = (DestinationGroupDAOImpl)appContext.getBean("DestinationGroupDAO") ;
// add Registrant rant2 ;
Organization org = new Organization() ;
org.setOrganizationName("rgtest1") ;
orgDao.createOrganization(org) ;
// Add routerecord rr2
NAPTR rec = new NAPTR() ;
rec.setOrganizationName("rgtest1") ;
rec.setRouteRecordName("rgtest_rr1") ;
rec.setPriority((short)10) ;
rec.setOrder((short)1) ;
rec.setServices("E2U+sip") ;
rec.setOrder((short)2) ;
rteRecDao.addRouteRecord(rec) ;
//add another route record
rec.setRouteRecordName("rgtest_rr2") ;
rteRecDao.addRouteRecord(rec) ;
//create DestinationGroup rgtest_dg1
DestinationGroup dg = new DestinationGroup() ;
dg.setDestGrpName("rgtest_dg1") ;