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