fail()
statements when testing for exceptions to be thrown
public void testGetChild() {
try {
a1.getChild(0);
fail("Didn't throw IndexOutofBoundsException");
}
catch (IndexOutOfBoundsException success) {
// success
}
}