AllophoneSet { public Allophone[] splitIntoAllophones(String allophoneString) { List<String> phones = splitIntoAllophoneList(allophoneString, false); Allophone[] allos = new Allophone[phones.size()]; for (int i = 0; i < phones.size(); i++) { try { allos[i] = getAllophone(phones.get(i)); } catch (IllegalArgumentException e) { throw e; } } return allos; } private  AllophoneSet(InputStream inputStream); static AllophoneSet getAllophoneSet(String filename); static boolean hasAllophoneSet(String identifier); static AllophoneSet getAllophoneSetById(String identifier); static AllophoneSet getAllophoneSet(InputStream inStream, String identifier); Locale getLocale(); Allophone getAllophone(String ph); Allophone getSilence(); String getIgnoreChars(); String getPhoneFeature(String ph, String featureName); Set<String> getPhoneFeatures(); String[] getPossibleFeatureValues(String featureName); Set<String> getAllophoneNames(); Allophone[] splitIntoAllophones(String allophoneString); String splitAllophoneString(String allophoneString); List<String> splitIntoAllophoneList(String allophonesString); boolean checkAllophoneSyntax(String allophoneString); String syllabify(String phoneString);  }
@Test(dataProvider = "allophoneArrayData") public void testSplitIntoAllophones(String phoneString, Allophone[] expecteds) { Allophone[] actuals = allophoneSet.splitIntoAllophones(phoneString); Assert.assertEquals(expecteds, actuals); }