The safe refactorings included in IDEs have a far higher bar of safety than mere testing; if the code is syntactically correct and there are no escapes from the static type system used (such as reflection), then the refactorings are proven to be correct, no testing needed.
Reflection does not break the static type system in any way. However you are right in assuming the refactorings are in general not correct in the presence of reflection.