public void testRetrieveDormancyDaysForInvalidConnection() throws Exception {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getActiveSavingsProductCategories();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
 public void testGetApplicablePrdStatusForInvalidConnection() {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getApplicablePrdStatus((short) 1);
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
 public void testGetSavingsApplicableRecurrenceTypesFailure() throws Exception {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getSavingsApplicableRecurrenceTypes();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
 public void testGetAllSavingsProductsFailure() throws Exception {
   SavingsOfferingBO savingsOffering = createSavingsOfferingBO();
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getAllSavingsProducts();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
     StaticHibernateUtil.closeSession();
     TestObjectFactory.removeObject(savingsOffering);
   }
 }