}
}
public static void TestNamePrepConformance() throws Exception {
InputStream stream = StringPrep.class.getResourceAsStream("uidna.spp");
StringPrep namePrep = new StringPrep(stream);
stream.close();
int i;
for(i=0; i<TestData.conformanceTestCases.length;i++){
TestData.ConformanceTestCase testCase = TestData.conformanceTestCases[i];
try{
UCharacterIterator iter = UCharacterIterator.getInstance(testCase.input);
StringBuffer output = namePrep.prepare(iter, testCase.flags);
if(testCase.output !=null && output!=null && !testCase.output.equals(output.toString())){
fail("Did not get the expected output. Expected: " + prettify(testCase.output)+
" Got: "+ prettify(output.toString()) );
}
} catch(ParseException ex) {