DictionaryServiceImpl implements DictionaryService { @Override public Textual cleanUpText(String text) { return new TextualImpl(text); }  @Override Textual cleanUpText(String text);  }
@Test public void testPassThrough() throws Exception { DictionaryServiceImpl service = new DictionaryServiceImpl(); String in = "This is a test sentence."; Assert.assertEquals(in, service.cleanUpText(in).getText()); }