Resolve expected exception annotations against namespace and use statements.