// http://mifosforge.jira.com/browse/MIFOSTEST-139
  public void createVoluntarySavingsProductForCenters() throws Exception {
    SavingsProductParameters params =
        savingsProductHelper.getGenericSavingsProductParameters(
            new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CENTERS);
    params.setShortName("M139");
    DefineNewSavingsProductConfirmationPage confirmationPage =
        savingsProductHelper.createSavingsProduct(params);

    confirmationPage.navigateToSavingsProductDetails();
    createSavingAccountWithCreatedProduct(
        "DefineNewSavingsProductTestCenter", params.getProductInstanceName(), "7777.8");
  }
  // http://mifosforge.jira.com/browse/MIFOSTEST-138
  public void createMandatorySavingsProductForClients() throws Exception {

    SavingsProductParameters params =
        savingsProductHelper.getGenericSavingsProductParameters(
            new DateTime(), SavingsProductParameters.MANDATORY, SavingsProductParameters.CLIENTS);
    params.setShortName("M138");
    DefineNewSavingsProductConfirmationPage confirmationPage =
        savingsProductHelper.createSavingsProduct(params);

    confirmationPage.navigateToSavingsProductDetails();
    createSavingAccountWithCreatedProduct(
        "DefineNewSavingsProduct TestClient", params.getProductInstanceName(), "248");
  }
  public void createSavingsProductWithoutInterestRateDetails() throws Exception {
    SavingsProductParameters params =
        savingsProductHelper.getGenericSavingsProductParameters(
            new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CENTERS);

    params.setShortName(StringUtil.getRandomString(3));
    DefineNewSavingsProductPreviewPage savingsProductPreviewPage =
        savingsProductHelper.getDefineSavingsProductPreviewPageWithoutInterestRateDetails(params);
    savingsProductPreviewPage.verifyAllElementsAreNotPresent("id=interestRateDetails");
    savingsProductPreviewPage
        .submitAndNavigateToDefineNewSavingsProductConfirmationPage()
        .navigateToSavingsProductDetails()
        .verifyAllElementsAreNotPresent("id=interestRateDetails");
  }
  public void validateDefineSavingsProductForm() throws Exception {
    SavingsProductParameters params =
        savingsProductHelper.getInvalidSavingsProductParameters(
            new DateTime(), SavingsProductParameters.MANDATORY, SavingsProductParameters.GROUPS);
    params.setShortName("V140");
    DefineNewSavingsProductPage newSavingsProductPage =
        savingsProductHelper.getDefineSavingsProductPageWithValidationErrors(params);

    newSavingsProductPage.verifyValidationErrors(
        "Please specify the Time period for Interest calculation.",
        "Please specify the Frequency of Interest posting to accounts.",
        "Please specify the Interest rate. Interest must be in range (0-100).",
        "Please specify a value greater than zero for Mandatory amount for deposit.",
        "Please select the Amount Applies to.");
  }