The code above is correct, but this should remain as 'throw new AssertionError()'. We won't ever see an IllegalAccessException unless we're run in an applet sandbox, which we explicitly don't support.