I'm not sure, but isn't this covered by one of [these methods](https://github.com/Catrobat/Catroid/blob/master/catroidTest/src/org/catrobat/catroid/test/utils/Reflection.java#L153-L185)?