OK, I see, this is a 'Empty Can' Test
There is also an 'Empty Can' Exercise. (The exercise may also be called 'Pouring Water'.) This blog explains the issue and the anatomical reasons why the movement might be an issue as an exercise -
I read in a book by Horrigan, The 7-Minute Rotator Cuff Solution
, an older book, that the exercise 'upright rows' also puts the shoulder in a bad position, internally rotated, while raising the arm too high.
I don't know what to make of these but I would study the issue before doing these or similar exercises (raising the arm when the shoulder is internally rotated).