CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade { @Override public void removeCustomizedText(String originalText) { try { this.transactionHelper.startTransaction(); customizedTextDao.removeCustomizedText(originalText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); } @Autowired  CustomizedTextServiceFacadeWebTier(CustomizedTextDao customizedTextDao, MessageSource messageSource); @Override void addOrUpdateCustomizedText(String originalText, String customText); @Override void removeCustomizedText(String originalText); @Override Map<String, String> retrieveCustomizedText(); @Override String replaceSubstitutions(String message); @Override CustomizedTextDto getCustomizedTextDto(String originalText); @Override void convertMigratedLabelKeysToLocalizedText(Locale locale);  }
@Test public void shouldRemoveCustomizedText() { String originalText = "original"; customizedTextServiceFacadeWebTier.removeCustomizedText(originalText); verify(customizedTextDao).removeCustomizedText(originalText); }