}
}
public void testAddAll_Indexed() throws InvalidNameException {
log.setMethod("testAddAll_Indexed()");
CompoundName name;
name = new CompoundName("", props);
assertNameEmpty(name);
name.addAll(0, new CompoundName("a", props));
assertNameEquals(name, "a");
name.addAll(0, new CompoundName("b", props));
assertNameEquals(name, "b", "a");
name.addAll(1, new CompoundName("", props));
assertNameEquals(name, "b", "a");
name.addAll(2, new CompoundName("c", props));
assertNameEquals(name, "b", "a", "c");
try {
name.addAll(-1, new CompoundName("d", props));
fail();
} catch (ArrayIndexOutOfBoundsException e) {
}
try {
name.addAll(4, new CompoundName("d", props));
fail();
} catch (ArrayIndexOutOfBoundsException e) {
}
}