PseudoLocalization { public String convertAsciiToDiacritics(String string) { int stringLength = string.length(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < stringLength; i++) { char character = string.charAt(i); sb.append(getMappingCharFromMap(character)); } return sb.toString(); }  String convertStringToPseudoLoc(String string, Set<TextUnitIntegrityChecker> checkers); String convertStringToPseudoLoc(String string); String expand(String string); String convertAsciiToDiacritics(String string);  }
@Test public void testStringIsConvertedToDiacritics() { PseudoLocalization ps = new PseudoLocalization(); String diacriticsString = ps.convertAsciiToDiacritics("English Sentence"); assertNotEquals("The string should be converted to diacritics", "English Sentence", diacriticsString); }
@Test public void testStringIsNotConvertedToDiacritics() { PseudoLocalization ps = new PseudoLocalization(); String diacriticsString = ps.convertAsciiToDiacritics("qQV"); assertEquals("The strings should remain the same", "qQV", diacriticsString); }