public void testGetDecimalPlacePrecision() {
        BigDecimal value;
        int significantDigits;
        int result;
        int expResult;
        value = new BigDecimal("0.001234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 5;
        assertEquals(expResult, result);
        value = new BigDecimal("0.00100234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 5;
        assertEquals(expResult, result);
        value = new BigDecimal("100.001234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 1;
        assertEquals(expResult, result);
        value = new BigDecimal("1.001234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 2;
        assertEquals(expResult, result);
        value = new BigDecimal("10.001234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 1;
        assertEquals(expResult, result);
        value = new BigDecimal("0.001234567891011");
        significantDigits = 5;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 7;
        assertEquals(expResult, result);
        value = new BigDecimal("23.001234567891011");
        significantDigits = 3;
        result = Generic_BigDecimal.getDecimalPlacePrecision(
                value,
                significantDigits);
        expResult = 1;
        assertEquals(expResult, result);

    }