Remember the article I shared about a pharmaceutical company (I think it was Johnson & Johnson) which used to test skin products on prisoners (and left them traumatized and with unpleasant health conditions).
From that came the precedent that prisoners cannot meaningfully consent.