MathUtils { public static BigDecimal divide(BigDecimal dividend, BigDecimal divisor) { return dividend.divide(divisor, SCALE, RoundingMode.HALF_EVEN); }  static BigDecimal divide(BigDecimal dividend, BigDecimal divisor); static BigDecimal invert(BigDecimal d); static double percentChange(BigDecimal oldValue, BigDecimal newValue); static boolean equalsByComparingTo(BigDecimal bd1, BigDecimal bd2);  }
@Test public void testDivide() { assertThat(MathUtils.divide(new BigDecimal("1.2"), new BigDecimal("0.7"))).isEqualByComparingTo("1.7142857143"); }