expectedExceptions example added