this.key = key;
this.expected = expected;
}
public void call() {
int p = 0;
UResourceBundle menus = icuRes.get(key);
int sizei = menus.getSize();
for (int i=0; i<sizei; i++){
UResourceBundle menu = menus.get(i);
String menu_name = menu.getKey();
if (!expected[p++].equals(menu_name)) throw new Error("not equal");
int sizej = menu.getSize();
for (int j=0; j< sizej; j++){
UResourceBundle menu_item = menu.get(j);
String itemKey = menu_item.getKey();
String value = menu_item.getString();
if(!expected[p++].equals(itemKey)) throw new Error("not equal");
if(!expected[p++].equals(value)) throw new Error("not equal");
}
}