I've come across an issue where I am trying to mock a 3rd party Java class which implements an interface but changes the return type of a method defined by the interface. The following is a simplified ...
2020-09-30T00:46:39.4931240Z java.lang.instrument.IllegalClassFormatException: Error while instrumenting org/mockito/codegen/HttpServletRequest$MockitoMock$1385459789 ...