Adding new expectedexception, and using it in core
Using new expected exception in android tests