MathUtils { public static double percentChange(BigDecimal oldValue, BigDecimal newValue) { return divide(newValue.subtract(oldValue), oldValue).multiply(HUNDRED).doubleValue(); }  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 testPercentChange() { assertThat(MathUtils.percentChange(new BigDecimal("100"), new BigDecimal("110"))).isEqualTo(10f); }