there's an expect notation for test in JUnit4 - is this using that version?

    @Test(expected=IndexOutOfBoundsException.class)
    public void testIncompleteLastStatementDetection() {