public void tearDown() throws Exception {
   if (idmgr != null) {
     idmgr.stopService();
     idmgr = null;
   }
   repository.stopService();
   super.tearDown();
 }