BigDecimal parseBigDecimal(String s) {
        if (numberFormat instanceof DecimalFormat) {
            return (BigDecimal) parse(s);
        }
        // Fall back to default big decimal format
        // if the locale does not have a DecimalFormat
        return new BigDecimal(s);
    }
@Test
    void can_parse_big_decimals() {
        assertEquals(new BigDecimal("1042.0000000000000000000002"),
            english.parseBigDecimal("1,042.0000000000000000000002"));
        assertEquals(new BigDecimal("1042.0000000000000000000002"),
            german.parseBigDecimal("1.042,0000000000000000000002"));
    }