How to mock super reference (on super class)?
问题 Sometimes when I write unit tests I should to mock reference to superclass. I have read this question: question This answer answer with DI advice to refactor code. But I cannot it this answer another answer is not suitable if superclass method is enough big. In my case I have very big code. Yes I know that it is brokes SOLID OOD principes but I just should to write test. I have not enough time for refactor. said question was asked 4 years ago! Does currently Mockito or Powermock can resolve