Revert "Modified test to work on Java 7 and 8 - it was broken due to differences"
This reverts commit 89975a986ced62522d09873ef633645c6a6dae9f.
Converts decimal values to BigDecimal before appplying formatting, to
work around Java 7/8 behavior discrepancy (refs #2786)