ModuleTextFormatter implements ITextFormatter { public void setVisibleVerseNumbers(boolean visible) { this.visibleVerseNumbers = visible; } ModuleTextFormatter(BaseModule module, PreferenceHelper prefHelper);  ModuleTextFormatter(BaseModule module, ITextFormatter formatter); void setVisibleVerseNumbers(boolean visible); @Override String format(String text);  }
@Test public void testSetVisibleVerseNumbers() throws Exception { ModuleTextFormatter formatter = new ModuleTextFormatter(mModule, prefHelper); formatter.setVisibleVerseNumbers(false); String result = formatter.format(testVerses); Assert.assertFalse(result.contains("12")); Assert.assertFalse(result.contains("13")); }