This
PluginSwitch allows switching off and on arbitrary mockito plugins.
To enable it you should place the file
mockito-extensions/org.mockito.plugins.PluginSwitch in your classpath and
put inside it the full qualified name of this class.
When you want to enable any plugin, just call
enablePlugins(List) and contrarily to disable any previously enabled
ones call
disablePlugins(List). Be aware that besides enabling this class, you have to declare also the plugins as
usual, by placing the proper files in
mockito-extensions/