String [] array = {"en_US","en_US__567_89","sp_SP","fr_FR_WIN","","FR_FR_UNIX"};
for(int i = 0;i < array.length;i++) {
System.setProperty(SystemPropertyConstants.DEFAULT_LOCALE_PROPERTY,array[i]);
PEMain.setSystemLocale();
if(array[i].equals("")) {
//System.out.println("Blank string reached..Locale should not change!");
Assert.assertTrue(Locale.getDefault().toString().
equalsIgnoreCase(array[i-1]));
} else {
Assert.assertTrue(Locale.getDefault().toString().
equalsIgnoreCase(System.getProperty(
SystemPropertyConstants.DEFAULT_LOCALE_PROPERTY)));
}
//System.out.println("Locale -> " + Locale.getDefault());
}