@Test
  public void testGetAllClosedAccounts() throws Exception {
    createInitialObjects();
    MeetingBO meetingIntCalc =
        TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
    MeetingBO meetingIntPost =
        TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());

    Date startDate = new Date(System.currentTimeMillis());
    savingsOffering =
        TestObjectFactory.createSavingsProduct(
            "SavingPrd1",
            ApplicableTo.GROUPS,
            new Date(System.currentTimeMillis()),
            PrdStatus.SAVINGS_ACTIVE,
            300.0,
            RecommendedAmountUnit.PER_INDIVIDUAL,
            1.2,
            200.0,
            200.0,
            SavingsType.VOLUNTARY,
            InterestCalcType.MINIMUM_BALANCE,
            meetingIntCalc,
            meetingIntPost);
    savings =
        TestObjectFactory.createSavingsAccount(
            "432434", center, AccountState.SAVINGS_CLOSED.getValue(), startDate, savingsOffering);
    List<SavingsBO> savingsAccounts = service.getAllClosedAccounts(center.getCustomerId());
    Assert.assertEquals(1, savingsAccounts.size());
  }
 @Test
 public void testFindById() throws Exception {
   createInitialObjects();
   Date currentDate = new Date(System.currentTimeMillis());
   savingsOffering =
       TestObjectFactory.createSavingsProduct(
           "SavingPrd1", "kh6y", currentDate, RecommendedAmountUnit.COMPLETE_GROUP);
   savings =
       createSavingsAccount("FFFF", savingsOffering, AccountStates.SAVINGS_ACC_PARTIALAPPLICATION);
   SavingsBO savings1 = service.findById(savings.getAccountId());
   Assert.assertNotNull(savings1);
 }