Preprocess extends InternalModule { protected String expandNumber(double number) { this.rbnf.setDefaultRuleSet(cardinalRule); return this.rbnf.format(number); } Preprocess(); MaryData process(MaryData d);  }
@Test(dataProvider = "NumExpandData") public void testExpandNum(String token, String word) { double x = Double.parseDouble(token); String actual = module.expandNumber(x); Assert.assertEquals(actual, word); }