use annotation to declared expected exception