private LoanAccountView getLoanAccountView(final LoanBO account) {
    LoanAccountView accountView = TestObjectFactory.getLoanAccountView(account);
    List<AccountActionDateEntity> actionDates = new ArrayList<AccountActionDateEntity>();
    actionDates.add(account.getAccountActionDate((short) 1));
    accountView.addTrxnDetails(TestObjectFactory.getBulkEntryAccountActionViews(actionDates));

    return accountView;
  }
  @SuppressWarnings("deprecation")
  private CustomerAccountView getCustomerAccountView(final CustomerBO customer) {
    CustomerAccountView customerAccountView =
        new CustomerAccountView(customer.getCustomerAccount().getAccountId(), getCurrency());

    List<AccountActionDateEntity> accountAction = new ArrayList<AccountActionDateEntity>();
    accountAction.add(customer.getCustomerAccount().getAccountActionDate(Short.valueOf("1")));
    customerAccountView.setAccountActionDates(
        TestObjectFactory.getBulkEntryAccountActionViews(accountAction));
    customerAccountView.setCustomerAccountAmountEntered("100.0");
    customerAccountView.setValidCustomerAccountAmountEntered(true);
    return customerAccountView;
  }